• λ我爱Aspx >> Asp.Net >> .NET中各种数据库连接的方法
  • .NET中各种数据库连接的方法

  • :未知  Դ:internet  :2007-5-20 16:41:10  ؼ:.net,数据库,数据
  • SQL Server

    ODBC

    Standard Security:

    "Driver={SQL Server};Server=Aron1;Database=pubs;Uid=sa;Pwd=asdasd;"

    Trusted connection:

    "Driver={SQL Server};Server=Aron1;Database=pubs;Trusted_Connection=yes;"

    Prompt for username and password:

    oConn.Properties("Prompt") = adPromptAlways

    oConn.Open "Driver={SQL Server};Server=Aron1;DataBase=pubs;"

    OLEDB, OleDbConnection (.NET)

    Standard Security:

    "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;User Id=sa;Password=asdasd;"

    Trusted Connection:

    "Provider=sqloledb;Data Source=Aron1;Initial Catalog=pubs;Integrated Security=SSPI;"

    (use serverName\instanceName as Data Source to use an specifik SQLServer instance, only SQLServer2000)

    Prompt for username and password:

    Ҷƪл˵?
  • һƪ用asp.net画饼图(可用于各种投票程序)
    һƪ得到真实IP