Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SET ANSI_PADDING OFF Error in DDL Trigger

Author  Topic 

sureshkk
Starting Member

21 Posts

Posted - 2012-05-29 : 05:56:33
Hi All,

I am getting following error in DDL trigger when i am creating or dropping a table which is created with SET ANSI_PADDING OFF option.

"SELECT failed because the following SET options have incorrect settings: 'ANSI_PADDING'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations."

In the trigger boby i am inserting the executed SQL command into another table using eventdata() function.

If the table is created with SET ANSI_PADDING ON option the problem is solved, but i want the solution with out changing the SET option.

Thanks in advance.







visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-29 : 12:07:04
As error message states its not possible to drop it unless you set the setting to expected value

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -