To create a Universal Data Link (.udl) file
To configure a universal data link (.udl) file
The Data Link Properties dialog box opens, displaying the following tabs: Provider, Connection, Advanced, and All. Choose Next to navigate from tab to tab.
Server name
Instance name
Port
Select or enter a server name
Select or enter a server name (Forcing TCP\IP protocol)
Select or enter a server name (Forcing Named Pipe protocol)
SERVER1
<default instance>
1433 (default port)
TCP:SERVER1,1433
NP:SERVER1
1500 (non-default port)
TCP:SERVER1,1500
INST1
1433
SERVER1\INST1
TCP:SERVER1\INST1,1433
NP:SERVER1\INST1
TCP:SERVER1\INST1,1500
Following the above approaches you can test the connectivity to an Instance of SQL Server both locally, and remotely.
If you are trying to use the UDL file on a 64 bit machine refer: http://blogs.msdn.com/b/chaitanya_medikonduri/archive/2008/04/09/how-to-run-32-bit-udl-file-on-a-64-bit-operating-system.aspx
For a local connection you don’t need to be really on any network. For remote connection, a stable network is required. The first thing to trouble shoot SQL connectivity issues is to make sure the network we rely on is workable and stable. Please run the following commands:
ping -a <your_target_machine> (use -4 and -6 for IPv4 and IPv6 specifically)
ping -a <Your_remote_IPAddress>
If you are not able to ping your target machine, it has high chance that either the network is broken or the target machine is not running.
You are now able to ping the remote machine. Now you need to make sure the port on which SQL Server is listening on is really available. Try the following command:
TELNET <your_target_machine> <Port_Of_SQLServer>
If the TELNET fails, there is a possible the target machine is behind a firewall and the specified port might be blocked on the Firewall.
If works fine, then your remote SQL Server is reachable, and there might not be any network related issues here.
A firewall on the SQL Server machine (or anywhere between client and server) could block SQL connection request. To isolate this, try to turn off firewall for a short time if you can. Long term solution is to put exception for SQL Server and SQL Browser.
Refer: http://msdn.microsoft.com/en-us/library/cc646023.aspx [Configuring the Windows Firewall to Allow SQL Server Access]
Please refer: