Gusus please see this-SQL Server connection open in ASP.Net

  • 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

     

     

     

  • 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 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply