[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

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?
0
allelopath
Asked:
allelopath
  • 2
2 Solutions
 
Jesus RodriguezIT ManagerCommented:
The connection strings that you are using is pointing to the new one??
0
 
allelopathAuthor Commented:
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.
0
 
CodeCruiserCommented:
What sort of project? Can you show us some more code?
0
 
allelopathAuthor Commented:
It appears to be a registry key that exist only for the life of the application.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now