locked
DAAB - Dynamic Connection Strings RRS feed

  • Question

  • User-294030300 posted

    Hello,

    I have to piece together my connection string; however, I was still hoping to make use of the DAAB to connect to the database.  The reason I have to dynamically generate it is because the name of the database will change (loading data in from many databases) and putting all of the connection strings in manually will not work for my purposes.  Anyone know if it is possible and how?

    Thanks.

    Thursday, June 21, 2007 1:11 PM

All replies

  • User-2096365283 posted

    string conn = "Initial Catalog =..."+"...";

    SqlConnection myConn = new SqlConnection(conn);

    Thursday, June 21, 2007 1:29 PM
  • User-294030300 posted

    That's not using the DAAB.

    Thursday, June 21, 2007 1:49 PM