如何为SQL Server 2012创建连接字符串?

时间:2017-03-16 10:49:16

标签: c# asp.net sql-server sql-server-2012

这是我的连接字符串。

Data Source=.\MSSQLSERVER2012; Initial Catalog=admissio; Integrated Security=False; User ID=amedb; Password=*******; server=66.7.223.250;

我正在尝试连接数据库,但我无法这样做。我还更改了Data Source=66.7.233.250,8880;server=66.7.233.250:8880; or server=66.7.233.250,8880;

还有其他方法可以连接数据库吗?

1 个答案:

答案 0 :(得分:1)

试试这个:

Data Source=66.7.223.250; Initial Catalog=admissio; Integrated Security=False; User ID=amedb; Password=*******;

Data Source=66.7.223.250\MSSQLSERVER2012; Initial Catalog=admissio; Integrated Security=False; User ID=amedb; Password=*******;