• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 獨家:C#數據庫操作的三種經典用法

    發表于:2008-05-15來源:作者:點擊數: 標簽:數據庫用法經典
    關鍵字:c#由于最近和 數據庫 打交道,需要用C#和 SQL Server 2005進行操作,就把近段時間內的最常用的操作做個總結。本人也是第一次用C#操作數據庫,所以這三種典型用法對初學者還是挺有幫助的。 以下是我在visual studio 2005上寫的一個類(連的是SQL Server
    關鍵字:c#由于最近和數據庫打交道,需要用C#和SQL Server 2005進行操作,就把近段時間內的最常用的操作做個總結。本人也是第一次用C#操作數據庫,所以這三種典型用法對初學者還是挺有幫助的。

      以下是我在visual studio 2005上寫的一個類(連的是SQL Server 2005),已經過測試通過。里面有3個方法比較典型,源碼如下:

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Data;
    using System.Data.SqlClient;

    namespace DatabaseOperate
    {
     class SqlOperateInfo
     {
      //Suppose your ServerName is "aa",DatabaseName is "bb",UserName is "clearcase/" target="_blank" >cc", Password is "dd"
      private string sqlConnectionCommand = "Data Source=aa;Initial Catalog=bb;User ID=cc;Pwd=dd";
      //This table contains two columns:KeywordID int not null,KeywordName varchar(100) not null
      private string dataTableName = "Basic_Keyword_Test";

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>