G
Guest
Hello,
I am connecting to a SqlServer database on my machine using a SqlConnection. It works fine.
I have tried it on several machines, and there is one machine where it doesn't work and the exception says:
SqlServer does not exist or access denied. I changed the connection string to use the IP instead of the server name and the connection worked. I think that the Server name couldn't be resolved to an IP address (maybe because that system has more than one IP), and hence returned an error. Is this hypothesis on the right track? I need to know what the cause of the problem is so that I can work around it accordingly...
Cheers,
James Chang
I am connecting to a SqlServer database on my machine using a SqlConnection. It works fine.
I have tried it on several machines, and there is one machine where it doesn't work and the exception says:
SqlServer does not exist or access denied. I changed the connection string to use the IP instead of the server name and the connection worked. I think that the Server name couldn't be resolved to an IP address (maybe because that system has more than one IP), and hence returned an error. Is this hypothesis on the right track? I need to know what the cause of the problem is so that I can work around it accordingly...
Cheers,
James Chang