Closed stijnherreman closed 10 years ago
Is your default SET ANSI PADDING OFF
? That's non-default and would cause this issue...I can explicitly fix it in the script but would like to confirm this is the case first.
According to
select
db.name
,db.is_ansi_padding_on
from
sys.databases db
it's OFF
(0) for all our databases. Database Properties via SSMS also says it's OFF
(False).
So I believe it's safe to say that it's off indeed (although I have no idea why).
Edit: running dbcc useroptions
prints ansi_padding SET
. I'm confused now...
I've asked a question on dba.se to clear up the confusion.
I've taken another look at this. Turns out this is only a problem when using the SQL Management Object method, it works fine when using the detach and attach method. It's probably also fixable by changing our database defaults, something I intend to do soon.
I'm not able to use 'Copy Database' on databases that have the Exceptions table created by SQLExceptionTable.sql
Is this something that can be resolved by the creation script? Or could this be caused by server configuration? (I'm not the DBA here, just a developer) The db runs on an SQL Server 2008 R2 instance.