您现在的位置是:首页 >

编写存储过程的目的是 关于ASP.NET2.0编写扩展存储过程

火烧 2022-01-29 23:11:22 1068
关于ASP.NET2.0编写扩展存储过程 SqlPi e 类 C# 复制代码 [Micro oft SqlServer Server SqlProcedure ] u lic tatic void S
编写存储过程的目的是 关于ASP.NET2.0编写扩展存储过程

关于ASP.NET2.0编写扩展存储过程  

    SqlPipe 类   C# 复制代码   [Microsoft SqlServer Server SqlProcedure()]   public static void StoredProcExecuteCommand(int rating)   {    // Connect through the context connection    using (SqlConnection connection = new SqlConnection( context connection=true ))    {    connection Open();       SqlCommand mand = new SqlCommand(    SELECT VendorID AccountNumber Name FROM Purchasing Vendor +    WHERE CreditRating <= @rating connection);    mand Parameters AddWithValue( @rating rating);       // Execute the mand and send the results directly to the client    SqlContext Pipe ExecuteAndSend(mand);       }   以上存储过程的执行结果怎么样在ASP NET 应用程序端来调用?   如果想把以上存储过程的返回结果体现在DataList控件中 应用程序端的调用代码是什么样的?      ; lishixinzhi/Article/program/net/201311/12644  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码