1.“System.Data.SqlClient.SqlException”类型的未经处理的异常在 xxx.dll 中发生
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
2.连接字符串包含以下几个参数:
Data Source、Network Library、Initial Catalog、User ID、Password
3.
connectionString = “Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;”;
PS:版本——ODBC17,SQLSERVER2008
1万+

被折叠的 条评论
为什么被折叠?



