﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Database Schema Support in SF....?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 16 May 2026 00:15:07 GMT</lastBuildDate><ttl>20</ttl><item><title>Database Schema Support in SF....?</title><link>http://forum.strataframe.net/FindPost17247.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I am starting a new project and I am planning on using SQL2005 Database Schemas to better organize the model.&amp;nbsp; Is there any problem in SF to support multiple schemas other than the default dbo?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Also how will using Schemas affect my working code with the BOs in SF?&amp;nbsp; So far using the default dbo when creating an scalar method, I simply refer to the BO.TableName in the SQL, would I need to alter this to include the schema or will this be included in the BO.TableName property?</description><pubDate>Mon, 23 Jun 2008 13:30:13 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Database Schema Support in SF....?</title><link>http://forum.strataframe.net/FindPost17254.aspx</link><description>Thanks!</description><pubDate>Mon, 23 Jun 2008 13:30:13 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Database Schema Support in SF....?</title><link>http://forum.strataframe.net/FindPost17252.aspx</link><description>[quote]Is there any problem in SF to support multiple schemas other than the default dbo?&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;Nope.&amp;nbsp; Doing it as we speak.&amp;nbsp; I did make a change to the DDT the other day as there was a bug if you had the same table name but different schemas, but this will be addressed in the beta build I post later on today or tomorrow.&lt;/P&gt;&lt;P&gt;[quote]Also how will using Schemas affect my working code with the BOs in SF?&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;dbo is always the default schema.&amp;nbsp; So if you have queries that use something other than dbo, SQL Server will require you to supply them.&amp;nbsp; But in regards to the BOs and the framework, there is no difference.&amp;nbsp; The schema name is part of the BO when mapped, so any intrinsic methods (i.e. FillByPrimaryKey) methods will already take this into account.&lt;/P&gt;&lt;P&gt;[quote]So far using the default dbo when creating an scalar method, I simply refer to the BO.TableName in the SQL, would I need to alter this to include the schema or will this be included in the BO.TableName property?&lt;FONT size=1&gt;&lt;BR&gt;&lt;/FONT&gt;[/quote]&lt;/P&gt;&lt;P&gt;You will need to include the schema:&lt;/P&gt;&lt;P&gt;[codesnippet]Dim fullName as String = MyBO.TableSchema &amp;amp; "." &amp;amp; MyBO.TableName[/codesnippet]</description><pubDate>Mon, 23 Jun 2008 13:24:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>