Results 1 to 2 of 2

Thread: xp_regread

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Location
    Chennai, India
    Posts
    87

    Smile xp_regread

    Hi,
    i need to access registry settings from SQL Server 2000 stored procedures.

    So i'm using xp_regread extended procedure to access. But it's not always working properly.

    Code:
    declare @Test varchar(50)
    exec master..xp_regread @rootkey='HKEY_CURRENT_USER',
    @key='Software\ODBC\ODBC.INI\ODBC Data Sources', 
    @value_name='Visual FoxPro Database', @value=@test OUTPUT
    
    SELECT @test

    But it's Showing


    Code:
    Msg 22001, Level 1, State 22001
    RegOpenKeyEx() returned error 2, 'The system cannot find the file specified.'
                                                       
    -------------------------------------------------- 
    NULL
    
    (1 row(s) affected)
    Can any one help me pls?

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Location
    Chennai, India
    Posts
    87

    Re: xp_regread

    I'm waiting

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width