一条C#连接SQL Server数据库写法
server=(localhost);database=mydata;UserId=sa;pwd=sa;"IntegratedSecurity=SSPI;InitialCatalog=Northwind;server=(local)"
Provider=SQLOLEDB.1;Password=你的数据库密码;PersistSecurityInfo=True;UserID=你的用户名;InitialCatalog=你的数据库名;DataSource=你的服务器名
//这是oledb的连接字符串
页:
[1]