StrataFrame Forum

Wrong Database

http://forum.strataframe.net/Topic2401.aspx

By Gerhard Jaros - 8/23/2006

There is the following command in my program.cs:

ConnectionManager.AddRequiredDataSourceItem("", "SQL Connection",

            DataSourceTypeOptions.SqlServer, "EKZ7", "This connection is used by EKZ7.");

 

With the Debugger I could see that a SELECT command runs to the StrataFrame database and not to my EKZ7 database.

What did I do wrong?

By Trent L. Taylor - 8/23/2006

Change your application key and re-run your application.  This will require your to re-connect to your database through the wizard.  You can find the application key several lines above the code you posted.

ConnectionManager.ApplicationKey = "ChangeThisValue";

Then run again and see if you have the same issue.  There could be something going on since you initially had the StrataFrame settings pointing to the wrong location.  I don't think that this would cause the issue, but to remove any doubt, make this change and try again.