Click here to Skip to main content
14,734,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)

Does anyone know how to write the application database name to the windows system registry?

Im working in with sql server 2008 and need to have the database name written/recorded to the system registry so that when the registry editor is opened, our database name is present.

Im working with windows7.

Thanks in advance

1 solution

Why do need to store it in the registry? Configuration files such as web.config are the preferred method.
**Butterfly Girl** 15-Aug-10 14:54pm
Yeah i realise there are easier methods but im busy with a project and interfacing with the windows registry is part of the complexity marks i need to obtain. Do you know of any way to do this? Thanks :)
[no name] 15-Aug-10 15:06pm
"...part of the complexity marks I need to obtain." ??? You are rewarded for how complex your code or application is ???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900