数据库连接字符串大全

日期:2007年8月8日 作者: 查看:[大字体 中字体 小字体]
  •  MySqlConnection (.NET)

    •  eInfoDesigns.dbProvider:
      "Data Source=server;Database=mydb;User ID=username;Password=pwd;Command Logging=false"
      This one is used with eInfoDesigns dbProvider, an add-on to .NET
    •  Declare the MySqlConnection:
      C#:
      using eInfoDesigns.dbProvider.MySqlClient;
      MySqlConnection oMySqlConn = new MySqlConnection();
      oMySqlConn.ConnectionString = "my connection string";
      oMySqlConn.Open();


      VB.NET:
      Imports eInfoDesigns.dbProvider.MySqlClient
      Dim oMySqlConn As MySqlConnection = New MySqlConnection()
      oMySqlConn.ConnectionString = "my connection string"
      oMySqlConn.Open()

  •  SevenObjects MySqlClient (.NET)

    •  Standard:
      "Host=server; UserName=myusername; Password=mypassword;Database=mydb;"
      This is a freeware ADO.Net data provider from SevenObjects
  •  Core Labs MySQLDirect (.NET)

    •  Standard:
      "User ID=root; Password=pwd; Host=localhost; Port=3306; Database=test;Direct=true; Protocol=TCP; Compress=false; Pooling=true; Min Pool Size=0;Max Pool Size=100; Connection Lifetime=0"
      Read more at Core Lab and the product page.
  •  Interbase
  • 精品推荐

    热点TOP10

    特别推荐