VB remembering connection string

Posted on 2012-08-27
Last Modified: 2012-08-28
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?
Question by:allelopath
    LVL 13

    Accepted Solution

    The connection strings that you are using is pointing to the new one??
    LVL 1

    Author Comment

    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.
    LVL 83

    Assisted Solution

    What sort of project? Can you show us some more code?
    LVL 1

    Author Comment

    It appears to be a registry key that exist only for the life of the application.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video discusses moving either the default database or any database to a new volume.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now