1)执行一个没有参数的存储过程的代码如下:SqlConnection conn=new SqlConnection(“connectionString”);SqlDataAdapter da = new SqlDataAdapter();da.selectCommand = new SqlCommand();da.selectCommand.Connection = conn;da.selectCommand.CommandText = "NameOfProcedure";da.sel…
创建 use StudentManager go if exists(select * from sysobjects where name='usp_ScoreQuery4') drop procedure usp_ScoreQuery4 go create procedure usp_ScoreQuery4 --创建带参数的存储过程 @AbsentCount int output,--缺考总人数 @FailedCount int output,--不及格总人数 , as select Stu…