﻿<?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?)  » BO To Connect To Tables in 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, 09 Jun 2026 02:20:16 GMT</lastBuildDate><ttl>20</ttl><item><title>BO To Connect To Tables in Different Databases</title><link>http://forum.strataframe.net/FindPost11825.aspx</link><description>Hi StrataFrame Team,&lt;/P&gt;&lt;P&gt;I have multiple databases running on a single SQL Server 2005 machine.&amp;nbsp; I need to have a master&amp;nbsp;database with master tables that&amp;nbsp;all other databases/applications use.&amp;nbsp; How do I setup my BO connections so that within the project/application which is using tables from one database&amp;nbsp;I can access the master tables residing in the master database?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;jjp</description><pubDate>Thu, 04 Oct 2007 14:54:56 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: BO To Connect To Tables in Different Databases</title><link>http://forum.strataframe.net/FindPost11871.aspx</link><description>No problem :)</description><pubDate>Thu, 04 Oct 2007 14:54:56 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO To Connect To Tables in Different Databases</title><link>http://forum.strataframe.net/FindPost11866.aspx</link><description>Thanks for the info Trent!</description><pubDate>Thu, 04 Oct 2007 14:21:42 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: BO To Connect To Tables in Different Databases</title><link>http://forum.strataframe.net/FindPost11847.aspx</link><description>You will want to create multiple data sources and then tie your BOs DataSOurceKey property to the correct connection.&amp;nbsp; This can be done programmatically at run-time as well.&amp;nbsp; First setup your data sources:&lt;/P&gt;&lt;P&gt;[codesnippet]DataBasics.DataSources(New SqlDataSourceItem("","My SqlConnection;Database=ApplicationSpecific;"))&lt;BR&gt;DataBasics.DataSources(New SqlDataSourceItem("MASTER","My SqlConnection;Database=Master;"))[/codesnippet]&lt;/P&gt;&lt;P&gt;Next, on the BO you will want to assign the the DataSourceKey to any BO that needs to talk with the MASTER instead of the default ("" - Empty String By Default) connection.&amp;nbsp; You can set this on the property sheet of the BO or set it in code:&lt;/P&gt;&lt;P&gt;[codesnippet]MyBO.DataSourceKey = "MASTER"[/codesnippet]</description><pubDate>Thu, 04 Oct 2007 10:23:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>