VS2008连接SQL server2008的连接字符串

C#中:

string connStr="workstation id=localhost(服务器名);Integrated Security=SSPI;Database=数据库名;";
   SqlConnection con=new SqlConnection(connStr);

VB.NET中:

private connstr as string = "workstation id=localhost(服务器名);Integrated security=sspi;database=数据库名

sqlconnection con=new sqlconnection(connstr)

posted on   意扬  阅读(850)  评论(0编辑  收藏  举报

导航

< 2009年3月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 1 2 3 4
5 6 7 8 9 10 11
点击右上角即可分享
微信分享提示