<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using a digital signature as a secondary identity to replace Cross database ownership chaining</title><link>http://blogs.msdn.com/raulga/archive/2006/10/30/using-a-digital-signature-as-a-secondary-identity-to-replace-cross-database-ownership-chaining.aspx</link><description>In SQL Server 2000, Cross database ownership chaining (CDOC) was a mechanism used to allow access (DML access) to resources on different DBs without explicitly granting access to the resources (such as tables) directly. Unfortunately CDOC is a feature</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using a digital signature as a secondary identity to replace Cross database ownership chaining</title><link>http://blogs.msdn.com/raulga/archive/2006/10/30/using-a-digital-signature-as-a-secondary-identity-to-replace-cross-database-ownership-chaining.aspx#8318327</link><pubDate>Tue, 18 Mar 2008 20:26:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8318327</guid><dc:creator>raulga</dc:creator><description>&lt;p&gt; &amp;nbsp;Corrected a minor bug regarding the description of CDOC.&lt;/p&gt;
</description></item><item><title>re: Using a digital signature as a secondary identity to replace Cross database ownership chaining</title><link>http://blogs.msdn.com/raulga/archive/2006/10/30/using-a-digital-signature-as-a-secondary-identity-to-replace-cross-database-ownership-chaining.aspx#8408779</link><pubDate>Fri, 18 Apr 2008 22:01:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8408779</guid><dc:creator>RaviRAVI</dc:creator><description>&lt;P&gt;Awesome article! I learned quite a lot from this article- &lt;/P&gt;
&lt;P&gt;A caller needs just execute permissions on a digitally signed stored procedure. &lt;/P&gt;
&lt;P&gt;If this stored procedure accesses a local database resource then a database user needs to be created FOR THE CERTIFICATE with necessary permissions on that resource. If this stored procedure accesses a server resource then a login needs to be created FOR THE CERTIFICATE with necessary permissions on that resource.&lt;/P&gt;
&lt;P&gt;If this stored procedure accesses another database resource then also a login needs to be created FOR THE CERTIFICATE and a database user on the remote database with necessary permissions on that resource.&lt;/P&gt;
&lt;P&gt;If this stored procedure accesses a server resource I guess I need to create a credential for the certificate login? &lt;/P&gt;
&lt;P&gt;Ravi A&lt;/P&gt;</description></item><item><title>re: Using a digital signature as a secondary identity to replace Cross database ownership chaining</title><link>http://blogs.msdn.com/raulga/archive/2006/10/30/using-a-digital-signature-as-a-secondary-identity-to-replace-cross-database-ownership-chaining.aspx#8415796</link><pubDate>Tue, 22 Apr 2008 04:16:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8415796</guid><dc:creator>raulga</dc:creator><description>&lt;p&gt; &amp;nbsp;Unfortunately this solution doesn’t work for accessing a remote DB (i.e. linked servers). The certificate as a secondary identity is scoped only for a given SQL Server instance. A workaround in this case could be using EXECUTE AS LOGIN (or equivalent) with linked servers.&lt;/p&gt;
&lt;p&gt;NOTE: SETUSER and approles are sandboxed to the current SQL Server instance and cannot be used with linked servers. &lt;/p&gt;
&lt;p&gt; &amp;nbsp;-Raul Garcia&lt;/p&gt;
&lt;p&gt; &amp;nbsp; SDE/T&lt;/p&gt;
&lt;p&gt; &amp;nbsp; SQL Server Engine&lt;/p&gt;
</description></item></channel></rss>