dbTalk Databases Forums  

Trying to get the right registry key through sql script to change listen port

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Trying to get the right registry key through sql script to change listen port in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BF
 
Posts: n/a

Default Trying to get the right registry key through sql script to change listen port - 03-08-2007 , 06:50 AM






Hi,

I want the change the SQL listen port of a named 2005 sql instance.

Is there a way I can run an sql query against the named instance which
gives me back which registry setting I need to use.

so MSSQL.1 MSSQL.2 or MSSQL.3

Or is there another way I can set the listenport through script or
vbscript for only a specific named instance so if there are other sql
server instances running they don't get affected.

Thanks Bob


Reply With Quote
  #2  
Old   
BF
 
Posts: n/a

Default Re: Trying to get the right registry key through sql script to change listen port - 03-08-2007 , 06:55 AM






On 8 mrt, 13:50, "BF" <b... (AT) faessen (DOT) net> wrote:
Quote:
Hi,

I want the change the SQL listen port of a named 2005 sql instance.

Is there a way I can run an sql query against the named instance which
gives me back which registry setting I need to use.

so MSSQL.1 MSSQL.2 or MSSQL.3

Or is there another way I can set the listenport through script or
vbscript for only a specific named instance so if there are other sql
server instances running they don't get affected.

Thanks Bob
Just found it myself:

HKLM\Software\Microsoft\Microsoft SQL Server\Instance Names\SQL

There are all named instances displayed and so can be read.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.