To define Place Base of Data

As I can change the place of the Base of data through code when the option is used  Data, Add New Data Source... for instance of Nwind.mdb


Answer this question

To define Place Base of Data

  • cobra2005

    Can you rephrase the question   I'm not clear on what exactly you are asking

    Thanks,
    Luke Hoban
    Visual C# IDE Program Manager

  • Nicolas Frelat

    I have tried to change the database path to have database outside of the project because the database I am using is an existing one that I can't move, the obvious solution is to create a new connection to the database with the new path...  but it does'nt work: The database explorer shows the new connection, but this doesn't change anything: the program is still accessing the copy of the database that is in the project.
    I have tried also to chage the path in the database file properties but it is read-only..

    What can I do

  • HerrLinder

     Luke Hoban wrote:
    Can you rephrase the question   I'm not clear on what exactly you are asking

    Thanks,
    Luke Hoban
    Visual C# IDE Program Manager


    I think it means a thing like that:
    "If I set a DataBase connection at startup [i.e.], can I change the DataBase path, inside DataBase connection, in another moment of the execution by code "
    But I'm not sure if my interpretation is correct.
    I think it is possible, you simple create a new connection to a DataBase and you use the new connection Smile.

  • To define Place Base of Data