Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Registry Key

Status
Not open for further replies.

Maii

Programmer
Aug 28, 2003
54
BD
Hi,
Is there any function to read registry Key in SQL 2K?

Thanks
Maii
 
example below:

Code:
DECLARE @NodeName varchar(30)
EXEC master.dbo.xp_regread 
'HKEY_LOCAL_MACHINE',  
'SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName',   
'ComputerName',
@NodeName OUTPUT
select 'The active node is ' + @NodeName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top