Advertisement

11.27.2006 at 01:40AM PST, ID: 22073064
[x]
Attachment Details

Read registry values

Asked by poutses in Visual Basic Programming

Tags: registry

I have a connection string in my DLL. I am storing the database name of my application at

HKEY_LOCAL_MACHINE\SOFTWARE\Company\ProductName
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"

ThanksStart Free Trial
[+][-]11.27.2006 at 01:43AM PST, ID: 18018004

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: registry
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 3
Solution Grade: A
 
 
[+][-]11.27.2006 at 02:04AM PST, ID: 18018090

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.27.2006 at 02:11AM PST, ID: 18018113

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2006 at 12:16AM PST, ID: 18026073

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32