January 19, 2004 at 5:56 am
Hi,
Dim SQLConn As New SqlConnection()
Dim strSQL As String
strSQL = "data source=myserver;initial catalog=pubs;user id=user;password=pwd;"
SQLConn.ConnectionString = strSQL
SQLConn.Open()
I am using this Vb.Net code in an Web form to connect to the server.
But it was showing the error " SQL Server does not exist or access denied. "
But the same code is working perfectly in the windows form.
I checked the folder access rights also in the remote server.Everything is ok.
What will be the problem?
Jag
January 19, 2004 at 3:12 pm
suspect network connection issue.
Make sure both client and server support the same network protocol.
In case of IP,
check if you can ping your server.
or change server name to ip address and try.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy