Link to home
Start Free TrialLog in
Avatar of allelopath
allelopath

asked on

VB remembering connection string

I changed the MS SQL database, but the VB code is still connecting to the old one. It appears the VB is caching the connection string (or something like that). What is happening and how can I fix it?
ASKER CERTIFIED SOLUTION
Avatar of Jesus Rodriguez
Jesus Rodriguez
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of allelopath
allelopath

ASKER

No. I think what is happening is that it is being remembered somehow and so it is not getting a new string.

I thought maybe it was being stored in the registry. I found this line:
Data.Data.Current = New Data(Common.Settings.GetClientRegistryKey("MyProjectSQLConnectionString"), Nothing)

Open in new window

but I did a search in the registry on MyProjectSQLConnectionString and nothing came up.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It appears to be a registry key that exist only for the life of the application.