﻿<?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?)  » Using Visual FoxPro free table in Combination with SQL Server Database</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 17:46:49 GMT</lastBuildDate><ttl>20</ttl><item><title>Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19434.aspx</link><description>&lt;br&gt;
I see the VFPStandAloneTable sample, I hope does everything this sample has, but my program does not work.&lt;br&gt;
&lt;br&gt;
I have more table from different folder that I have to incorporate in the project but when my first.&lt;br&gt;
&lt;br&gt;
Thanks SF&lt;br&gt;</description><pubDate>Tue, 16 Sep 2008 16:18:13 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19456.aspx</link><description>[quote]You Are Right... Like ever[/quote]&lt;/P&gt;&lt;P&gt;Well, and you are completely wrong on this. :D&lt;/P&gt;&lt;P&gt;But glad you got it working! :cool:</description><pubDate>Tue, 16 Sep 2008 16:18:13 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19455.aspx</link><description>Not... Thanks was my problem, I moved the sentence ConnectionManager.SetConnections() before create the DataLayer.&lt;br&gt;
&lt;br&gt;
All is working fine ...&lt;br&gt;
&lt;br&gt;
You Are Right... Like ever &lt;br&gt;
&lt;br&gt;
Thanks very very Much SF&lt;br&gt;</description><pubDate>Tue, 16 Sep 2008 16:05:43 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19450.aspx</link><description>Could you give us some more details?&lt;/P&gt;&lt;P&gt;A stack trace. Your DataLayer.DataSources.Add line also could help.</description><pubDate>Tue, 16 Sep 2008 15:27:20 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19449.aspx</link><description>Well, now I have this error "An error occurred while creating a new DataLayer for the business object."&lt;br&gt;
&lt;br&gt;
Thanks SF</description><pubDate>Tue, 16 Sep 2008 15:22:51 GMT</pubDate><dc:creator>Elio Reyes</dc:creator></item><item><title>RE: Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19436.aspx</link><description>And in your BOs properties sheet, don't forget to set the DataSourceKey too: &lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/b04fad7d-d164-48ea-96f4-1536.png"&gt;</description><pubDate>Tue, 16 Sep 2008 10:36:51 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Using Visual FoxPro free table in Combination with SQL Server Database</title><link>http://forum.strataframe.net/FindPost19435.aspx</link><description>Hey Pedro.&lt;/P&gt;&lt;P&gt;Lets start checking your Data Source setting. In the AppMain.vb, you will find a "SetDataSources" sub. In there, you should manyally set your datasource for your free tables. Something like:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;DataLayer.DataSources.Add(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; VfpDataSourceItem(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"MyFreeTables"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Provider=vfpoledb.1;Data Source="C:\MyFolderWhereMyFreeTablesAre&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;";Collating Sequence=general;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;And if I understood what you said, you might have tables in different folders, so you could create differente datasource keys for each, and then map your BOs accordingly: &lt;/P&gt;&lt;P&gt;DataLayer.DataSources.Add(&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; VfpDataSourceItem(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"MyFreeTables2"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Provider=vfpoledb.1;Data Source="C:\MyOtherFolderWhereMyFreeTablesAre&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;";Collating Sequence=general;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 16 Sep 2008 10:25:04 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>