﻿<?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?)  » Data access through DataBasics question</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 04:40:15 GMT</lastBuildDate><ttl>20</ttl><item><title>Data access through DataBasics question</title><link>http://forum.strataframe.net/FindPost23712.aspx</link><description>I've been playing around with the DataBasics data access trying to get a complex query to return a result set.  The ExecuteStoredProcedure method returns an object, which cannot be converted to a DataSet (or can it?).  So I can't use that method.  The query is complex enough, that I don't feel comfortable using BO's.&lt;br&gt;
&lt;br&gt;
The crux of the issue, is that I don't want to put connection strings in my code (one of the main reasons for getting StrataFrame in the first place).  I could do that but then I'm making a custom copy of the connection code even though it already exists.&lt;br&gt;
&lt;br&gt;
That being said, the other method I was looking at was the GetDataSet method, which requires a SQLCommand variable populated with the connection string.  My question is, can I get the connection string from StrataFrame and put it into that variable?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Doug.</description><pubDate>Mon, 29 Jun 2009 19:29:57 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Data access through DataBasics question</title><link>http://forum.strataframe.net/FindPost23716.aspx</link><description>Glad it helped! :D</description><pubDate>Mon, 29 Jun 2009 19:29:57 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Data access through DataBasics question</title><link>http://forum.strataframe.net/FindPost23714.aspx</link><description>Thanks Greg.  Exactly what I need.  I appreciate it.</description><pubDate>Mon, 29 Jun 2009 16:46:55 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Data access through DataBasics question</title><link>http://forum.strataframe.net/FindPost23713.aspx</link><description>I believe you can get the connection string via the DataSources collection (assuming you aren't using EnterpriseServer) via:&lt;br&gt;
&lt;br&gt;
[codesnippet]DataLayer.DataSources("").ConnectionString[/codesnippet]&lt;br&gt;
&lt;br&gt;
Just to make sure I understand though, you are expecting a data set back right?  So more than one data table?  Some folks more conversant with ADO will have to handle that situation.  When I've needed to get multiple data tables back, I've used the static FillMultipleDataTables() command in BusinessLayer. You might have other requirements, like relationships etc., so that might not work for you.</description><pubDate>Mon, 29 Jun 2009 16:28:31 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>