Skip navigation

How can I tell if a stored procedure was created with the ANSI NULLS setting on?

A. You can use the OBJECTPROPERTY function :

select objectproperty(object_id('<spname>'), 'ExecIsAnsiNullsOn')

This returns 1 for yes, 0 for no


TAGS: SQL
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish