Page 1 of 1
Changing connection string in VB for .Net 2.0
Posted: Fri 14 Jul 2006 09:04
by drfunfrock
I tried to make a dialog to change the connection string in my application settings but this member of My.settings ist readonly. What is the way to change the connection string? Is it possible to use the dialog that popups in Visual Studio?
Posted: Fri 14 Jul 2006 11:03
by Alexey
Please describe what exactly you need or what is the problem.
Posted: Fri 14 Jul 2006 11:18
by drfunfrock
I want to change the ConnectString in My.settings at runtime. The string is build by a wizard when you add a new datasource.
Posted: Fri 14 Jul 2006 11:47
by Alexey
You are right, My.Settings.ConnectionString is read-only.
What is the purpose of changing it?
Posted: Fri 14 Jul 2006 11:54
by drfunfrock
I want to change the database server and user at runtime thats the purpose, without compiling my application.
Posted: Fri 14 Jul 2006 12:23
by Alexey
Dataset doesn't have connection information. It is stored in the TableAdapter.