﻿<?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?)  » Can the DataLayer.DataSources["VFPData"].ConnectionString be changed</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:47:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Can the DataLayer.DataSources["VFPData"].ConnectionString be changed</title><link>http://forum.strataframe.net/FindPost2988.aspx</link><description>I have a BO with a preconfigured data source of "VFPData".&amp;nbsp; I am trying to do a conversion from Fox data to SQL.&amp;nbsp; The FoxBO has to be able to look at many different files with the same structure.&amp;nbsp; So, is it possible to change the connectionstring of the VFPData datasource then call the fill method and have it look at a different table?&amp;nbsp; I would think this would work but it keeps looking at the original table.&amp;nbsp; I am even calling the dispose on the bo and creating it everytime I change the connectionstring.&amp;nbsp;Any suggestions.</description><pubDate>Tue, 26 Sep 2006 14:52:20 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Can the DataLayer.DataSources["VFPData"].ConnectionString be changed</title><link>http://forum.strataframe.net/FindPost3080.aspx</link><description>I know you've already answered this for yourself, but the best way would be to just add a separate VfpDataSourceItem for each VFP connection string and just change the DataSourceKey on the business object to the appropriate data source when you need the data from a different one.</description><pubDate>Tue, 26 Sep 2006 14:52:20 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Can the DataLayer.DataSources["VFPData"].ConnectionString be changed</title><link>http://forum.strataframe.net/FindPost2989.aspx</link><description>Sorry.&amp;nbsp; Answered my own question.&amp;nbsp; Stupid mistake on my part.&amp;nbsp; Thanks</description><pubDate>Fri, 22 Sep 2006 13:11:23 GMT</pubDate><dc:creator>Scott</dc:creator></item></channel></rss>