Hi.
SQL 2000
Windows Advanced Server
I'm generating a dynamic .reg registry file in a stored procedure, and I want to execute it to add it's contents to the registry. But to execute a .reg file I have to reply to 2 promts:
1. are you sure you want to blah blah - YES
2. registry has been modified blah blah - OK
How can I get around this??
Are there switches i can use in xp_cmdshell?
Can I create a batch file and just execute that?
I know that there are some xp's that deal with the registry (xp_regread), but I cannot find any info on them in BOL or MSDN site.
Any help is greatly appreciated.
SQL 2000
Windows Advanced Server
I'm generating a dynamic .reg registry file in a stored procedure, and I want to execute it to add it's contents to the registry. But to execute a .reg file I have to reply to 2 promts:
1. are you sure you want to blah blah - YES
2. registry has been modified blah blah - OK
How can I get around this??
Are there switches i can use in xp_cmdshell?
Can I create a batch file and just execute that?
I know that there are some xp's that deal with the registry (xp_regread), but I cannot find any info on them in BOL or MSDN site.
Any help is greatly appreciated.