This week I discovered that restoring from a full backup doesn’t always restore SQL Server to the same state it was in when the backup was made. There are three settings that, if enabled, are not restored after a database restore. Thanks to Greg Low for pointing out that the list of affected settings is found in the SQL Server 2008 Upgrade Technical Reference Guide from which I quote:
· is_broker_enabled
· is_honor_broker_priority_on
· is_trustworthy_on
Detaching and attaching a database will also cause these settings to be lost if they are enabled.
Although it is documented behavior, I consider it to be a bug when a restore does not restore a database to the same state it was in when the backup was made. Please voice your opinion to Microsoft in this Connect item: https://connect.microsoft.com/SQLServer/feedback/details/551695/a-database-restore-does-not-restore-all-database-settings-such-as-trustworthy