我看到这个链接非 sa 用户 sql 连接字符串。
这是给出数据源名称和用户 ID 以及密码和数据库名称。但我对数据源名称有疑问:Dynamic GP 2010
。使用这个连接字符串我有点困惑:
string connection = "data source=Dynamic GP 2010;initial catalog=TWO;integrated security=False;User ID=client;Password=123";
这是给出错误: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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
让我知道我必须使用哪个数据源。是GP datasource
名称(或)sql datasource
名称。