﻿<?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 » Role Based Security  » RBS (Strataframe) database on a separate server</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 00:18:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RBS (Strataframe) database on a separate server</title><link>http://forum.strataframe.net/FindPost22659.aspx</link><description>Hi SF Team,&lt;P&gt;How do I&amp;nbsp;setup the DB connections in my app to point to the RBS (Strataframe) database on a&amp;nbsp;different server than my user database.&amp;nbsp; Right now&amp;nbsp;what I am doing is the following which is a connection string&amp;nbsp;which points to the same server for both databases.&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;builder.DataSource = MyDataSource&lt;/P&gt;&lt;P&gt;builder.InitialCatalog = MyDataBase&lt;/P&gt;&lt;P&gt;builder.UserID = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;"sa"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;builder.Password = MyPassword&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&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; SqlDataSourceItem(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, builder.ConnectionString))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Jeff&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 06 Apr 2009 17:31:58 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: RBS (Strataframe) database on a separate server</title><link>http://forum.strataframe.net/FindPost22664.aspx</link><description>Also Charles Thomas Blankenship posted a detail document on how to setup the RBS on a separate database, check out this link: [url=]http://forum.strataframe.net/FindPost14216.aspx[/url]&lt;br&gt;</description><pubDate>Mon, 06 Apr 2009 17:31:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RBS (Strataframe) database on a separate server</title><link>http://forum.strataframe.net/FindPost22662.aspx</link><description>Jeff,&lt;br&gt;
&lt;br&gt;
The SecurityDataSourceKey and the SetSecurityKeyAndVectorForUserAuthentication are [b]not[/b] the same thing.  &lt;br&gt;
&lt;br&gt;
The SecurityDataSourceKey is a key that is used to access a data source that contains the security tables/views used by RBS. The key is a string.  If you look at the properties of a BO in the designer of that BO, you'll notice a DataSourceKey property. This is set to the key of the DataSource the BO will use to interact with the data.  The SecurityBasics.SecurityDataSourceKey is simply used to set this property on the RBS BOs that provide data for the various RBS features.&lt;br&gt;
&lt;br&gt;
The security key and vector is a string that is used to generate a key and vector that is used to encrypt the information within the Data column in the user table (SFSUsers).  You set this in InitiApp() and it [b]must[/b] match what has been set as the security key in the security project (see "[i]Specifying the Encryption Key for User Data[/i]" in help) if you want to distribute any user data set at design time.&lt;br&gt;
&lt;br&gt;
So, since they are both just strings, they [i]could[/i] be the set to the same string, but they are not the same thing and I'd likely not use the same string.  &lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 06 Apr 2009 14:59:13 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: RBS (Strataframe) database on a separate server</title><link>http://forum.strataframe.net/FindPost22661.aspx</link><description>Thank you Greg for the prompt response.&amp;nbsp; In looking into this further, what I also found was the following where the "MyEncryptionKey" value is what I used for the datasource key which matches my Security Key when I&amp;nbsp;created my RBS project.&lt;FONT size=2&gt;&lt;P&gt;builderRBS.DataSource = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;MyDatabaseServer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;builderRBS.InitialCatalog = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;"StrataFrame"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;builderRBS.UserID = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;"sa"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;builderRBS.Password = &lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;saPassword&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&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; SqlDataSourceItem(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;"MyEncryptionKey"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, builderRBS.ConnectionString))&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;&lt;FONT color=#800000 size=2&gt;"MyEncryptionKey"&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;The .SetSecurityKeyAndVectorForUserAuthentication sets my database connection and provides the security key&amp;nbsp;to the RBS system.&amp;nbsp; I believe all I have to do now&amp;nbsp;is change the .DataSource value and it should enable me to accomplish what I want orginally wanted.&amp;nbsp; Is this correct?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Jeff&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Mon, 06 Apr 2009 14:39:16 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: RBS (Strataframe) database on a separate server</title><link>http://forum.strataframe.net/FindPost22660.aspx</link><description>There are two things you need to do differently when the security data is not in the same database as the rest of the app:&lt;br&gt;
&lt;br&gt;
1. Make sure the key of the datasource that access the security tables differs from the key used by the rest of the app. The default key is an empty string ("").  This is typically used for the main data source. You need to use a different one for the security datasource:&lt;br&gt;
&lt;br&gt;
[codesnippet]DataLayer.DataSources.Add(New SqlDataSourceItem("security", builder.ConnectionString))[/codesnippet]&lt;br&gt;
&lt;br&gt;
The key is set to "security" in the line above.&lt;br&gt;
&lt;br&gt;
2. Let the framework know that the security data is accessible via this datasource, by setting the SecurityDataSourceKey to the key you used when creating the data source for security:&lt;br&gt;
&lt;br&gt;
[codesnippet]SecurityBasics.SecurityDataSourceKey = "security"[/codesnippet]&lt;br&gt;
&lt;br&gt;
Both of these are typically done the the SetDataSources method in AppMain.vb (program.cs).</description><pubDate>Mon, 06 Apr 2009 14:13:35 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>