bclubb wrote:
I would imagine this is happening because the catalog is included in the name of the columns in the project. So if you connect to the same server, but change the database in the connection string you still won't access the other db. To fix this read the section of the manual "Generated code - Application configuration through .config files". The "Catalog name overwriting (SqlServer only)" portion should help you with this problem.
If it doesn't work then just let us know.
I have the same problem in changing the catalog in the connection string too. I've tried the "sqlServerCatalogNameOverwrites" method. But I've got a run-time error: "The type initializer for 'SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine' threw an exception."
Belows are what I've done in app.config:
<appSettings>
<add key="Main.ConnectionString" value="data source=somedbserver;initial catalog=SIRS_1;User ID=someuser;Password=somepassword;persist security info=false;packet size=4096"/>
<add key="SqlServerDQECompatibilityLevel" value="2" />
</appSettings>
<configSections>
<section name="sqlServerCatalogNameOverwrites" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</configSections>
<sqlServerCatalogNameOverwrites>
<add key="SIRS_LLBLGEN" value="SIRS_1" />
</sqlServerCatalogNameOverwrites>
Have I done anything wrong?