国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

關(guān)于ASP.NET2.0編寫擴(kuò)展存儲過程的問題

2019-11-18 17:03:40
字體:
供稿:網(wǎng)友

SqlPipe 類
C#  復(fù)制代碼
[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 command = new SqlCommand(
            "SELECT VendorID, AccountNumber, Name FROM Purchasing.Vendor " +
            "WHERE CreditRating <= @rating", connection);
        command.Parameters.AddWithValue("@rating", rating);

        // Execute the command and send the results directly to the client.
        SqlContext.Pipe.ExecuteAndSend(command);
       
    }
以上存儲過程的執(zhí)行結(jié)果怎么樣在asp.net2.0應(yīng)用程序端來調(diào)用?
如果想把以上存儲過程的返回結(jié)果體現(xiàn)在DataList控件中,應(yīng)用程序端的調(diào)用代碼是什么樣的?

http://m.survivalescaperooms.com/ASPNET2008/archive/2006/08/14/476478.html


發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 万年县| 沈丘县| 平顶山市| 上虞市| 曲阳县| 九龙城区| 安国市| 曲周县| 西峡县| 丁青县| 龙岩市| 三明市| 永新县| 包头市| 泽普县| 左贡县| 全州县| 夏津县| 宜黄县| 道真| 醴陵市| 青川县| 资溪县| 云梦县| 肃北| 蓬莱市| 商丘市| 公安县| 万宁市| 黄龙县| 温宿县| 宝清县| 诸暨市| 水富县| 特克斯县| 丰台区| 无锡市| 云安县| 红原县| 略阳县| 苍溪县|