The permissions are there.
It seems one needs a extra \\ in the begining of the path to access the key.
For e.g to access SOFTWARE\Microsoft SQL
Server\SALES\MSSQLServer\CurrentVersion where the key name is
CurrentVersion, one has to use
\\ SOFTWARE\Microsoft SQL Server\SALES\MSSQLServer\CurrentVersion
This works but i am not sure if they would make such a change.
-sarab
"Bronek Kozicki" <br**@rubikon.pl> wrote in message
news:1v*****************************@40tude.net...
On Wed, 05 Nov 2003 00:48:53 GMT, sarab wrote: I am having problems accessing the registry using RegOpenKeyEx().
It returns 2.
The keys are related to MS SQL Server 2000.
Do i need some permissions to access the registry?.
probably answer is "yes". You may run regedit and check it for yourself.
B.