﻿<?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 Project - Adding a SQL Server Linked Server?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 22 May 2026 11:27:32 GMT</lastBuildDate><ttl>20</ttl><item><title>BO Project - Adding a SQL Server Linked Server?</title><link>http://forum.strataframe.net/FindPost29618.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I'm attempting to create my first SF BO Project and am not seeing how I can select a linked server from within the SQL Server Connection String Builder. When I browse to my local SQL instance, the list of databases only show the native SQL databases. The list of linked server objects is not shown.&lt;br/&gt;&lt;br/&gt;Can a linked server database be entered&amp;nbsp;manually&amp;nbsp;within the connection string? &lt;br/&gt;&lt;br/&gt;Can someone give me an example?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;UPDATE:&lt;br/&gt;&lt;br/&gt;After creating a data connection in VS2010 to ANY of the native SQL databases on my server instance, I can create queries against the linked server like so:&lt;br/&gt;&lt;br/&gt;SELECT * FROM MyLinkedServerName...TableName&lt;br/&gt;&lt;br/&gt;So, now I'm just up against how to make this linked server work from within the SF BOM.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Any suggestions?&lt;br/&gt;&lt;br/&gt;Thanks.</description><pubDate>Sun, 27 Feb 2011 15:30:20 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: BO Project - Adding a SQL Server Linked Server?</title><link>http://forum.strataframe.net/FindPost29627.aspx</link><description>Sweet.&amp;nbsp;&amp;nbsp;Thanks Michel. That makes a lot of sense.&lt;br/&gt;&lt;br/&gt;After my post, I had started to think about setting up sprocs in the SQL server which queried the linked server tables, but I think views will be a little easier for me to implement.</description><pubDate>Sun, 27 Feb 2011 15:30:20 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: BO Project - Adding a SQL Server Linked Server?</title><link>http://forum.strataframe.net/FindPost29625.aspx</link><description>Hello William,&lt;br/&gt;&lt;br/&gt;BOM enumerate the &lt;strong&gt;Databases&lt;/strong&gt; in the server defined by the connection string, not the linked servers. &lt;br/&gt;&lt;br/&gt;If you want to get visible the objetcs of a linked server, you should create a view on each table you need in the linked server. The SQL view stays in the "local" SQL database, and is visible in the BO mapper. And then you'll see all the columns of the linked table.&lt;br/&gt;&lt;br/&gt;Using that workaround, I have my VFP tables in the SQL server. My BO project is connected on&amp;nbsp;one SQL&amp;nbsp;database (where are real SQL tables), &lt;br/&gt;&lt;br/&gt;&lt;img src="http://forum.strataframe.net/Uploads/Images/93061123-be91-41de-abde-7015.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;You may see a BO related to a linked server, where I've configured a specific connection string to another SQL database :&lt;br/&gt;&lt;br/&gt;&lt;img src="http://forum.strataframe.net/Uploads/Images/520e396b-9583-449c-824e-e9a0.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;This SQL database is hosting a view to a VFP table in a VFP&amp;nbsp;linked server:&lt;br/&gt;&lt;br/&gt;&lt;img src="http://forum.strataframe.net/Uploads/Images/91e49d80-50fb-4cec-a680-bc6b.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;And the final result is a BO where all the columns I need are available:&lt;br/&gt;&lt;br/&gt;&lt;img src="http://forum.strataframe.net/Uploads/Images/ff138615-05a1-4587-b146-48e5.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;In summary:&lt;br/&gt;The data are in a linked server (whatever it is, SQL, VFP, Pervasive, ...), a SQL database hosts views to these data, and a BO maps this view.</description><pubDate>Sun, 27 Feb 2011 11:01:32 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item></channel></rss>