﻿<?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?)  » Connecting to Security Data</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 08:25:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Connecting to Security Data</title><link>http://forum.strataframe.net/FindPost13101.aspx</link><description>Hello-&lt;/P&gt;&lt;P&gt;I too, am having some difficulty interpreting how to connect properly. I have created a small app without using security and it works so far in my tests (creating and using the BO's on forms). However, when using the security functions in another small app , I receive the above error.&amp;nbsp;I have used the connection wizard to point&amp;nbsp;to the SF database and I&amp;nbsp;coded in my database name in program.cs to use&amp;nbsp;my application data&amp;nbsp;in my database (both on the same server). (Which works&amp;nbsp;in the app not using security). Do you have to use the DTT to put the security tables into my database during development?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;SqlException&lt;BR&gt;&amp;nbsp; Invalid object name 'dbo.SFSPreferences'.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : .Net SqlClient Data Provider&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlDataReader.get_MetaData()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DbDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.SqlDataSourceItem.GetDataTable(DbCommand Command, OnChangeEventHandler CallBack)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataLayer.GetDataTable(DbCommand Command, Boolean RegisterNotification)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(DbCommand CommandToExecute)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.BusinessObjects.SFSPreferencesBO.FillAll(Int32 ProjectPK)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Security.BusinessObjects.SFSPreferencesBO.RetrieveSecurityPreferences()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at LumInvSys.Program.InitApplication(InitializingApplicationEventArgs e) in C:\MyProjects\LumInvSys\LumInvSys\Program.cs:line 161&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Application.StrataFrameApplication.Raise_InitializingApplication(InitializingApplicationEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at LumInvSys.Program.Main() in C:\MyProjects\LumInvSys\LumInvSys\Program.cs:line 40&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ThreadHelper.ThreadStart()&lt;BR&gt;</description><pubDate>Thu, 20 Dec 2007 20:09:47 GMT</pubDate><dc:creator>Christopher Smith</dc:creator></item><item><title>RE: Connecting to Security Data</title><link>http://forum.strataframe.net/FindPost13121.aspx</link><description>Any time!  :D</description><pubDate>Thu, 20 Dec 2007 20:09:47 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Connecting to Security Data</title><link>http://forum.strataframe.net/FindPost13115.aspx</link><description>Thanks Greg.&lt;/P&gt;&lt;P&gt;Chris</description><pubDate>Thu, 20 Dec 2007 16:27:22 GMT</pubDate><dc:creator>Christopher Smith</dc:creator></item><item><title>RE: Connecting to Security Data</title><link>http://forum.strataframe.net/FindPost13112.aspx</link><description>The answer is yes, you need to deploy the security tables to a database during development (just like your app tables need to be deployed during development).  The DDT is the easiest way to do this. You can deploy to the same database as your app or a different one. Using the same is the simplest.&lt;br&gt;
&lt;br&gt;
Note that the StrataFrame database is used by the design time environment and used at runtime.  You shouldn't ever connect to this database at runtime.  You set this connection in the SF menu within VS.  &lt;br&gt;
&lt;br&gt;
Good luck!</description><pubDate>Thu, 20 Dec 2007 15:47:15 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>