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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_regread does not return the right value

Status
Not open for further replies.

Yale

Programmer
Sep 30, 2004
31
US
i have the following code --

DECLARE @test varchar(20)
EXEC master..xp_regread
@rootkey='HKEY_LOCAL_MACHINE',
@key='Software\Microsoft\Windows\CurrentVersion\Uninstall\{90510409-6D54-11D4-BEE3-00C04F990354}',
@value_name='DisplayVersion',
@value=@test OUTPUT
SELECT @test

@test returns "NULL" when it should be = 10.1.2514... why does this happen? how do i resolve this one?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top