An exception of type System.Data.SqlClient.SqlException was thrown. Additional exception information: A network-related or instance-specific error occ
2012-10-22 10:16
686 查看
An exception of type System.Data.SqlClient.SqlException was thrown. Additional exception information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible
If you face a problem while connecting to remote sql server please make sure below configurations are done1. Enable the "Named Pipes"--> Go to SQL Server Configuration Manager-->SQL Server Network Configuration-->Protocals for "sqlserver"
2. Specify TCP Port
相关文章推荐
- A network-related or instance-specific error occurred while establishing a connection to SQL Server
- A network-related or instance-specific error occurred while establishing a connection to SQL Server
- System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL Network Interfaces, error: 26 - 定位指定的服务器/实例时出错)
- vs2008创建database project出错a network-related or instance-specific error occurred while establishing a connection to sql解决
- The type initializer for System.Data.SqlClient.SqlConnection threw an exception
- a network-related or instance-specific error occurred while establishing a connection to sql
- System.Data.SqlClient.SqlException: 在向服务器发送请求时发生传输级错误。 (provider: TCP 提供程序, error: 0 - 远程主机强迫关闭了一个现有的连接。) .
- A network-related or instance-specific error occurred while establishing a connection to SQL Server
- System.InvalidCastException: Unable to cast object of type SqlDataProvider to type DataProvider
- n unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.Additional information: 未能加载文件或程序集“..
- System.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated.
- SQLite组合主键设置外键以及出现外键匹配出错System.Data.SQLite.SQLiteException (0x80004005) SQL logic error or missing d
- Error = [Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has o
- Exception of type System.OutOfMemoryException was thrown.
- a network-related or instance-specific error occurred while establishing a connection to sql server
- Pymongo: TypeError: if no direction is specified, key_or_list must be an instance of list
- python3 爬虫TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be
- System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database
- Exception of type 'System.OutOfMemoryException' was thrown.
- 处理Exception of type System.OutOfMemoryException was thrown