I want to create a Windows service which will copy data from one database to another database. The source database is in a remote location, below is the function using
Check if the server itself is available and if the required instance of MS SQL Server is available through SSMS. It is possible that ports for remote access to MS SQL Server are not enabled or the server itself is unavailable.
Try to do telnet localhost 1433
from command prompt (from the same server where SQL services running), if the connection accepted without any error, then your SQL server really ready to accept connections. Otherwise follow these steps to troubleshoot the issue:
If the custom port NOT configured
1433
and 1434 (TCP and UDP)
telnet localhost 1433
again to verifyIf the custom port configured
telnet localhost <custom port>
to verifyDataSource = "ABCKOL-BCKOFF,<custom port>"