Re: Ansi Nulls and quoted identified
- From: "Razvan Socol" <rsocol@xxxxxxxxx>
- Date: 8 Aug 2005 07:59:00 -0700
To identify the objects, use something like this:
SELECT name, xtype,
OBJECTPROPERTY(id,'ExecIsAnsiNullsOn'),
OBJECTPROPERTY(id,'ExecIsQuotedIdentOn')
FROM sysobjects WHERE xtype IN ('P','TR','V','IF','FN','TF')
To change these properties, you should re-create those objects using
ALTER PROCEDURE / ALTER VIEW / ALTER FUNCTION.
If you do not want to do this one by one (and if you feel particularly
lucky today, as to change an undocumented column in a system table), I
will give you a hint: bits 30 and 29 (bit mask: 0x60000000) of the
status column in the sysobjects table.
Of course, changing a system table is a bad idea (it may cause data
loss or may prevent an instance of SQL Server from running). Changing
an undocumented column of a system table is an even worse idea !
Razvan
.
- Follow-Ups:
- Re: Ansi Nulls and quoted identified
- From: David Portas
- Re: Ansi Nulls and quoted identified
- References:
- Ansi Nulls and quoted identified
- From: Raziq Shekha
- Ansi Nulls and quoted identified
- Prev by Date: Re: Ansi Nulls and quoted identified
- Next by Date: Re: Ansi Nulls and quoted identified
- Previous by thread: Re: Ansi Nulls and quoted identified
- Next by thread: Re: Ansi Nulls and quoted identified
- Index(es):
Relevant Pages
|