March 23, 2010 at 8:08 am
I have a Server with a named instance to which I am unable to connect remotely.
I can connect to the default instance remotely without problems.
The named instance has the 'Allow remote connections' options checked on the SQL Server properties - Connections tab
SQL Server browser is running on the Server
I have run the following sample query to establish the port
set nocount on
DECLARE @test-2 varchar(20), @key varchar(100)
if charindex('\',@@servername,0) <>0
begin
set @key = 'SOFTWARE\MICROSOFT\Microsoft SQL Server\'
+@@servicename+'\MSSQLServer\Supersocketnetlib\TCP'
end
else
begin
set @key = 'SOFTWARE\MICROSOFT\MSSQLServer\MSSQLServer\Supersocketnetlib\TCP'
end
EXEC master..xp_regread @rootkey='HKEY_LOCAL_MACHINE',
@key=@key,@value_name='Tcpport',@value=@test OUTPUT
SELECT 'Server Name: '+@@servername + ' Port Number:'+convert(varchar(10),@test)
This returns the following
Server Name: HARP-DB01\BEST_TEST Port Number:1146
I have used SQL Client Networking Utility to set up an Alias to the Server using TCP/IP with port 1146 specified but this has no luck
Windows Firewall is turned off on the Server, and I am now at a loss as to what to try next.
Assistance please
Thanks in advance
March 23, 2010 at 8:35 am
Have you tried using port number in the connection string?
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply