Geeks With Blogs
kazim mehdi Windows Registry
Reading Registry value using T-SQL
DECLARE @RegLoc VARCHAR(100) select @RegLoc='SOFTWARE\Microsoft... NT\CurrentVersion' EXEC [master].[dbo].[xp_regread] @rootkey='HKEY_LOCAL_MACHINE', @key=@RegLoc, @value_name='ProductName' The above code will return the installed version of windows on which the current instance of Sql Server is running. references: ......

Posted On Thursday, September 8, 2011 9:52 AM

Copyright © kazim sardar mehdi | Powered by: