Select the product you need help with
You may receive an error message when you try to run an existing CLR object or create an assembly that has the external_access or unsafe permission set on a database that is attached or restored from a different serverArticle ID: 918040 - View products that this article applies to. Bug #: 423365 (SQLBUDT) SYMPTOMSConsider the following scenario. You detach or back up a database that is in an instance of SQL Server 2005. The instance of SQL Server 2005 is running on Server A. Later, you attach or restore that database to an instance of SQL Server 2005 that is running on Server B. In this scenario, you may experience the following symptoms:
CAUSEThis problem occurs because the login that you use to create the database on Server A is not in the instance of SQL Server 2005 on Server B. This login could be either the Microsoft Windows login or the SQL Server login. WORKAROUNDTo work around this problem, use one of the following methods. Note Before you use the following methods, make sure that you enable the Trustworthy database property.
MORE INFORMATIONIf you access the CLR object from a different database, and that database has a mismatching DBO SID, the same problem can occur. For more information, visit the following blog: http://blogs.msdn.com/psssql/archive/2010/03/23/unable-to-load-clr-assembly-intermittently.aspx
(http://blogs.msdn.com/psssql/archive/2010/03/23/unable-to-load-clr-assembly-intermittently.aspx)
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. REFERENCESFor more information about the CREATE LOGIN statement, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn2.microsoft.com/en-us/library/ms189751.aspx For more information about the sp_changedbowner stored procedure, visit the following MSDN Web site:
(http://msdn2.microsoft.com/en-us/library/ms189751.aspx)
http://msdn2.microsoft.com/en-us/library/ms178630.aspx For more information about the CREATE ASSEMBLY statement, visit the following MSDN Web site:
(http://msdn2.microsoft.com/en-us/library/ms178630.aspx)
http://msdn2.microsoft.com/en-us/library/ms189524.aspx
(http://msdn2.microsoft.com/en-us/library/ms189524.aspx)
PropertiesArticle ID: 918040 - Last Review: April 8, 2010 - Revision: 3.0 APPLIES TO
|


Back to the top








