Mar 7, 2006 #1 Maii Programmer Aug 28, 2003 54 BD Hi, Is there any function to read registry Key in SQL 2K? Thanks Maii
Mar 7, 2006 #2 Jamfool IS-IT--Management Apr 10, 2003 484 GB 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 Upvote 0 Downvote
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