c# 2008 SQL Server Express Connection String

后端 未结 5 967
无人及你
无人及你 2020-12-20 19:02

I have a 2008 SQL Server Express installed on one of my machines and I\'m attempting to establish a remote connection... when I use the MS SQL Server Management Studio I can

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-20 19:51

    try this

    string sqlcon=("Data Source="your pc name\\SQLEXPRESS"; 
    UserID=sa;
    Password=****;
    Initial Catalog="+MyDatabase+"; 
    IntegratedSecurity=True;");
    

提交回复
热议问题