Re: How to change connection string path at runtime



bwilloughby wrote:
I am trying to change the path to a database that I created using the
VB 2005 wizard.

There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic ADO newsgroup. ADO.Net bears
very little resemblance to classic ADO so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.adonet.

I can see this connection string / path contained in
the app.config file. I have several queries built on this database so
I don't want to create it by hand if I can help it. I know that I can
change the app.config file manually, but I want to allow users to
change this location via the application. Is there any way to change
the path to a wizard created database at runtime?
http://www.eggheadcafe.com/articles/20030907.asp
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages

  • RE: Restoring Active Directory
    ... Thank you for posting in the SBS newsgroup. ... Please kindly note that if we use "Add User Wizard" to create a new ... user account, this user account resides in SBSUsers OU by default. ...
    (microsoft.public.windows.server.sbs)
  • Re: i have problem when change ISP
    ... Microsoft CSS Online Newsgroup Support ... I often try with wizard for the conexion ... >> network connection configuration, you just need Re-run CEICW wizard ...
    (microsoft.public.windows.server.sbs)
  • RE: Problems joining pcs to server
    ... I added the workstation to a workgroup, deleted the computer from the server ... I then started the join computer wizard and went through ... This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ...
    (microsoft.public.windows.server.sbs)
  • Re: Backup wizard & Monitor wizard error
    ... Thanks for using SBS newsgroup. ... backup wizard and the last one is in the monitoring wizard. ... Service unavailable on IIS ASP.net Application. ...
    (microsoft.public.windows.server.sbs)
  • Re: Set the value of a textbox
    ... I need a sample of ASP code, VB or Java script to set the value of a textbox ... once I return values from the database or perform a calculation for example. ... Please reply to the newsgroup. ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)