I have a connection string in my DLL. I am storing the database name of my application at
HKEY_LOCAL_MACHINE\SOFTWAR
E\Company\
ProductNam
e
in this key, there is a string value named "DatabaseName"
How can I read the DatabaseName value and use it in my connection string. My connection string is:
"Provider=sqloledb;Data Source=(local);Initial Catalog=DDatabase;User ID=sa;Password=12345"
Thanks
Start Free Trial