当前位置:编程学习 > C#/ASP.NET >>

C#连接数据库代码

windows NT身份验证

String connetionString = "server=localhost;database=Northwind;integrated security=true";

myConnectionString = "Initial Catalog=Northwind;Data Source=localhost;Integrated Security=SSPI"
或者sql验证
myConnectionString="Server=.;DataBase=Northwind;UID=sa;PWD=;"
补充:软件开发 , C# ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,