数据库链接

Provider = SQLOLEDB.1;

SQL 2000:
static string StrConn = "workstation id=202.134.127.77;data source=202.134.127.77;initial catalog=Yellowpage;user id=sa;password=grt2006";

SQL2005:
con = new SqlConnection(@"Server=./SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong");

ACCESS:
string StrConn = "provider=Microsoft.Jet.OLEDB.4.0;" + "data source="+AppPath+"//Combination.mdb";

你可能感兴趣的:(数据库链接)