Wrong Database


Author
Message
Gerhard Jaros
Gerhard Jaros
StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)
Group: Forum Members
Posts: 18, Visits: 22
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?


Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search