﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Development  / Issues with security context / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Mon, 22 Mar 2010 06:44:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Issues with security context</title><link>http://www.sqlservercentral.com/Forums/Topic813684-145-1.aspx</link><description>the issue is sorted. On one data base trusworty was set to on and on another data base it was set automatically to off when data base was restored from live. so when user was impersonated, the error came. this is very strange.We altered the data base and set trustworty on.cheersSiddarth</description><pubDate>Fri, 06 Nov 2009 04:15:52 GMT</pubDate><dc:creator>Rookee DBA</dc:creator></item><item><title>RE: Issues with security context</title><link>http://www.sqlservercentral.com/Forums/Topic813684-145-1.aspx</link><description>we use "some-sa" account for logging on to db server in connection string in asp.net web application.cheers</description><pubDate>Wed, 04 Nov 2009 10:57:00 GMT</pubDate><dc:creator>Rookee DBA</dc:creator></item><item><title>RE: Issues with security context</title><link>http://www.sqlservercentral.com/Forums/Topic813684-145-1.aspx</link><description>Am I reading your post correctly?  You are using the sa account to access your database from a web server?</description><pubDate>Wed, 04 Nov 2009 10:30:54 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>Issues with security context</title><link>http://www.sqlservercentral.com/Forums/Topic813684-145-1.aspx</link><description>In proc, current loggin is impersonated to "somedb-admin" to access objects in other db. So when the procs are called from asp.net, one proc tries to access objects from another data base by impersonation from "sa" to "somedb-admin" and we get this error. The server principal "somedb-admin" is not able to access the database "CAA" under the current security context.Recently db was restored from live to test and data base ids were also corrected.  we have also executed EXEC sp_change_users_login 'Report'; to know orphan users, but nothing was returned.cheersSiddarth</description><pubDate>Wed, 04 Nov 2009 09:39:29 GMT</pubDate><dc:creator>Rookee DBA</dc:creator></item></channel></rss>