sql server 2000和sqlserver 2005 连接字符串的区别

在后台代码里:
SQL 2000:


static string StrConn = "workstation id=202.134.127.77;data source=202.134.127.77;initial catalog=Yellowpage;user id=sa;password=grt2006";

 

SQL2005:
con = new SqlConnection(@"Server=./SQLExpress;Database=db_CMS;Persist Security Info=True;User ID=sa;Password=Masslong");

 

在web.config里:
sql 2000:


   
                    providerName="System.Data.SqlClient" />
   


sql 2005:


   
        providerName="System.Data.SqlClient" />

你可能感兴趣的:(ヽ,‘数据库)