.NET数据库连接串

ASP.NET to SQLServer with System.Data.OleDb
provider=sqloledb; data source=IP地址; initial catalog=数据库名字; user id=用户名; password=密码;
ASP.NET to SQLServer with System.Data.SQLClient
data source=IP地址; initial catalog=数据库名字; user id=用户名; password=密码
ASP.NET to Access with System.Data.OleDb
provider=microsoft.jet.oledb.4.0; data source=数据文件的绝对路径; user id=用户名; password=密码;

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