在VB/ASP/C#.net项目中如何调用Store Procedure

来源:百度知道 编辑:UC知道 时间:2024/05/15 11:45:42

使用SqlCommand、OleDbCommand等Command对象。根据不同的数据库使用不同的Command对象。
SqlCommand cmd = new SqlCommand("ProcName", connection)
cmd.CommandType = CommandType.StoredProcedure;
.....
详细的用法参见Visual Studio文档