We are currently migrating servers (2005 to 2008) and our host backed up the SQL database and transferred it to the new server.
I have transferred the website files and changed the IP address in the connection string and the global.asa file.
So technically speaking we have a mirror image on the new server, but when I try to launch a page that connects to the SQL I get the following error.
SQL_Server_does_not_exist_or_access_denied.
Go to the SQL Server Enterprise Manager. Right click on the SQL Server instance and select Properties. In the General tab and Network Configuration window, make sure TCP/IP and Named Pipes are enabled. Restart the SQL Server service if you need to make these changes.
If the Telnet client returns an error when testing the connection on port 1433, the local firewall may be blocking connection to the MS-SQL server. Disable the firewall on the MS-SQL server temporarily to test if the firewall is blocking the connection.
I experienced this problem when connecting from Qt to Microsoft SQL Server 2014 running also on my computer ...
I used the following QODBC connection string:
db.setDatabaseName("Driver={SQL Server};Server=DESKTOP-F6T7JPD\\sql_Instance_Name;Database=master;Uid=sa;Pwd=your_pwd;");
I only suffered 2 issues:
identifying what to use for Server, this must be the Server Name as configured on SQL server instance, this can be found by opening "MicrosoftSql2014 management Studio", then by looking at properties I found the name (DESKTOP-F6T7JPD\sql_Instance_Name
)
the second issue actually is that this name must be modified by adding another back slash \
between my PC name and the instance name
so the name found on management studio will be like: PC_Name\Sql_Instance
.
Note the "\", ... this must be put as Pc_Name\\Sql_Instance
.
Note the \\
between PC name and Instance Name!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With