1.Windows身份验证模式:
(1)Data Source=计算机名\SQLEXPRESS;Initial Catalog=数据库名;Integrated Security=True
(2)Data Source=计算机名\SQLEXPRESS;Initial Catalog=数据库名;Integrated Security=SSPI
2.SQL身份验证模式:
转载于:https://www.cnblogs.com/coolcq/archive/2007/12/29/1020564.html