Andrew
Tue Oct 30 22:41:40 PDT 2007
A connection string is just a string. You can store it however you want. In
the app configuration, in a text file, in some other database, in the
registry or even just create it dynamically based on a configuration dialog
box you present to the user.
What errors are you getting when trying to work with App.Config?
--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
"Mike TI" <tanveer@creativepk.com> wrote in message
news:u%23%23%23003GIHA.3600@TK2MSFTNGP06.phx.gbl...
> Oct 30, 2007
>
> Hi all
>
> Using VB.Net 2005 & SQL 2005.
>
> I tried to use a database on my local PC and a remote database.
>
> Now is there a way I can make the connection string flexible. I tried to
> change the connection string in the APP.CONFIG file however I was not
> successful. It would be nice if I am able to store the connection string
> in
> some kind of a text file.
>
> What I may be doing wrong.
>
> Mike TI.
>
>
>
>