Before you go ahead and reveal your code, here is how I am doing it. I have an application and an app.config file. Inside the <configuration> section I have a section for the connection string:
<connectionStrings> <add name="My Database Connection String" connectionString="Database=MyDatabaseInstance;Server=MyDatabaseServer; Integrated Security=Yes;" providerName="System.Data.SqlClient" /> </connectionStrings> Inside my application I execute this: SqlDatabase objDatabase_ = DatabaseFactory.CreateDatabase("My Database Connection String") as SqlDatabase; Now, when I deploy my application, I only change the name of the database instance and server and everything works just fine. HTH, Eddie -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Eddie Lascu Sent: Saturday, December 01, 2007 5:11 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Connection strings and the MS Enterprise Library Block Can you post some code? I have been doing the exact same thing w/o any issues for the last couple of years. You must have gotten it wrong. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com