Runtime

Discussion in 'ASP .Net' started by Kenny, Apr 30, 2004.

  1. Kenny

    Kenny Guest

    Hi,
    Is it possible to have the connection string change during runtime? How?
    Thanks,
    Kenny
     
    Kenny, Apr 30, 2004
    #1
    1. Advertising

  2. Kenny

    CT Guest

    Sure, although if you change it when the connection is open, you need to
    close and reopen the connection. A simple assignment might be what you're
    after (ConnectionString = "..."). Perhaps you want to be able to do it from
    outside of your cide, in whiuch case you should look into dynamic properties
    or simply loading the connectionstring from you .config file.

    --
    Carsten Thomsen
    Enterprise Development with VS .NET, UML, and MSF
    http://www.apress.com/book/bookDisplay.html?bID=105
    "Kenny" <> wrote in message
    news:%...
    > Hi,
    > Is it possible to have the connection string change during runtime? How?
    > Thanks,
    > Kenny
    >
    >
     
    CT, Apr 30, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Polo Lee
    Replies:
    0
    Views:
    2,734
    Polo Lee
    Jul 7, 2003
  2. Sean
    Replies:
    2
    Views:
    1,517
    Carl Prothman [MVP]
    Jul 26, 2003
  3. JohnFol
    Replies:
    0
    Views:
    1,333
    JohnFol
    Aug 6, 2003
  4. Mr. x
    Replies:
    0
    Views:
    980
    Mr. x
    Aug 30, 2003
  5. Hal Vaughan
    Replies:
    11
    Views:
    1,131
    Gordon Beaton
    May 22, 2006
Loading...

Share This Page