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