﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Trying to Configure Connection to 2 Different DataBases</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 19 May 2026 21:11:31 GMT</lastBuildDate><ttl>20</ttl><item><title>Trying to Configure Connection to 2 Different DataBases</title><link>http://forum.strataframe.net/FindPost31063.aspx</link><description>&lt;div&gt;&lt;span&gt;I have the following code in my AppMain and when I first run the application it runs through the connection manager and I attach it to the correct databases. One is on the Web and one is Local.&lt;/span&gt;&lt;div&gt;I have a form that just uses the Web DataBase and I have the BO's DataSourceKey all set to&amp;nbsp;&lt;span style="font-family: Consolas; font-size: 13px; background-color: white; "&gt;&lt;font color="#000000"&gt;WebProRodeoData&lt;/font&gt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21); font-family: Consolas; font-size: 13px; background-color: white; "&gt;. It works as I want it too.&lt;/span&gt;&lt;div&gt;&lt;font color="#000000" face="Consolas" size="2"&gt;Now I am setting up a form where I want to connect to my local data and I have set the BO's DataSourceKey to LocalProRodeoData2&lt;/font&gt;&lt;div&gt;&lt;font color="#000000" face="Consolas" size="2"&gt;but I get the attached error when I try to configure the BO in the BOM.&amp;nbsp;&lt;/font&gt;&lt;div&gt;&lt;font color="#000000" face="Consolas" size="2"&gt;Is there something else I should be doing?&lt;/font&gt;&lt;div&gt;&lt;font color="#000000" face="Consolas" size="2"&gt;&lt;br/&gt;&lt;/font&gt;&lt;span&gt;[codesnippet]&lt;/span&gt;&lt;pre style="font-family:Consolas;font-size:13;color:black;background:white;"&gt;		&lt;span style="color:#2b91af;"&gt;ConnectionManager&lt;/span&gt;.ApplicationKey&amp;nbsp;=&amp;nbsp;&lt;span style="color:#a31515;"&gt;"ProRodeoUpdateWeb"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: Consolas; font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;		&lt;span style="color: rgb(43, 145, 175); "&gt;ConnectionManager&lt;/span&gt;&lt;font color="#000000"&gt;.ApplicationDefaultTitle&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;span style="color: rgb(163, 21, 21); "&gt;"ProRodeoUpdateWeb&amp;nbsp;Connection"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: Consolas; font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;		&lt;span style="color: rgb(43, 145, 175); "&gt;ConnectionManager&lt;/span&gt;&lt;font color="#000000"&gt;.ApplicationDefaultDescription&amp;nbsp;=&amp;nbsp;&lt;/font&gt;&lt;span style="color: rgb(163, 21, 21); "&gt;"This&amp;nbsp;application&amp;nbsp;connection&amp;nbsp;is&amp;nbsp;used&amp;nbsp;by&amp;nbsp;ProRodeoUpdateWeb"&lt;/span&gt;&lt;/pre&gt;&lt;pre style="font-family: Consolas; font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="font-family: 'Lucida Sans'; font-size: 12px; font-style: italic; color: green; "&gt;'--&amp;nbsp;Set&amp;nbsp;the&amp;nbsp;required&amp;nbsp;data&amp;nbsp;source&amp;nbsp;information&amp;nbsp;so&amp;nbsp;that&amp;nbsp;the&amp;nbsp;ConnectionManager&amp;nbsp;can&amp;nbsp;gather&amp;nbsp;it&lt;/span&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: 'Lucida Sans'; font-size: 12px; font-style: italic; color: green; "&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SQL&amp;nbsp;Connection&lt;/span&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(43, 145, 175); "&gt;ConnectionManager&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;.AddRequiredDataSourceItem(&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"WebProRodeoData"&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;,&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"SQL&amp;nbsp;Connection"&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;,&amp;nbsp;_&lt;/font&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(43, 145, 175); "&gt;DataSourceTypeOptions&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;.SqlServer,&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"WebRodeoData"&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;,&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"This&amp;nbsp;connection&amp;nbsp;is&amp;nbsp;used&amp;nbsp;by&amp;nbsp;Pro-Rodeo&amp;nbsp;Web&amp;nbsp;Data."&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;)&lt;/font&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: 'Lucida Sans'; font-size: 12px; font-style: italic; color: green; "&gt;'--&amp;nbsp;Set&amp;nbsp;the&amp;nbsp;required&amp;nbsp;data&amp;nbsp;source&amp;nbsp;information&amp;nbsp;so&amp;nbsp;that&amp;nbsp;the&amp;nbsp;ConnectionManager&amp;nbsp;can&amp;nbsp;gather&amp;nbsp;it&lt;/span&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: 'Lucida Sans'; font-size: 12px; font-style: italic; color: green; "&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SQL&amp;nbsp;Connection&lt;/span&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(43, 145, 175); "&gt;ConnectionManager&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;.AddRequiredDataSourceItem(&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"LocalProRodeoData2"&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;,&amp;nbsp;&lt;/font&gt;&lt;span style="font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"SQL&amp;nbsp;Connection"&lt;/span&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;,&amp;nbsp;_&amp;nbsp;&lt;/font&gt;&lt;/pre&gt;&lt;pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font color="#000000" style="font-family: Consolas; font-size: 13px; "&gt;&lt;br/&gt;&lt;/font&gt;&lt;/pre&gt;&lt;div&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; font-size: 13px; color: rgb(43, 145, 175); "&gt;DataSourceTypeOptions&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;.SqlServer,&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"LocalRodeoData"&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: white; font-family: Consolas; font-size: 13px; color: rgb(163, 21, 21); "&gt;"This&amp;nbsp;connection&amp;nbsp;is&amp;nbsp;used&amp;nbsp;by&amp;nbsp;Pro-Rodeo&amp;nbsp;Local&amp;nbsp;Data."&lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Consolas; font-size: 13px; "&gt;)&lt;/span&gt;&lt;div&gt;&lt;span&gt;[/codesnippet]&lt;/span&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span&gt;TIA.&lt;/span&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;</description><pubDate>Mon, 26 Mar 2012 13:38:44 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Trying to Configure Connection to 2 Different DataBases</title><link>http://forum.strataframe.net/FindPost31067.aspx</link><description>You are welcome Terry, glad it worked out for you.</description><pubDate>Mon, 26 Mar 2012 13:38:44 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Trying to Configure Connection to 2 Different DataBases</title><link>http://forum.strataframe.net/FindPost31066.aspx</link><description>Yes Sir Edhy a Direct Hit. Just like always exactly what it took to fix the problem. Thank you so much.</description><pubDate>Mon, 26 Mar 2012 13:17:00 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Trying to Configure Connection to 2 Different DataBases</title><link>http://forum.strataframe.net/FindPost31064.aspx</link><description>Hi Terry,&lt;br/&gt;The database connection in the BOM has nothing to do with the connection in your AppMain.vb file.&amp;nbsp; The BOM only needs to get a connection to a database with the same data structure as the one you will be using in your application so it can read the table schema and create the BO fields for you.&amp;nbsp; If you would use the DDT, then you should map your BOM to the DDT instead of the database except for views which will need to be read from any database.&lt;br/&gt;&lt;br/&gt;So bottom line is this:&lt;br/&gt;&lt;ol&gt;&lt;li&gt;Make sure the BOM connection is to any local database that has the same structure as expected for your application.&lt;/li&gt;&lt;li&gt;The connections in your AppMain.vb looks just fine.&lt;br/&gt;&lt;/li&gt;&lt;/ol&gt;</description><pubDate>Mon, 26 Mar 2012 12:18:14 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>