Recently, i have the problem of a query in a sp comparing null values and is unable to return values..
After going through this, found out that if a sp is created in query analyzer with null values setting is set to ANSI_NULL is set to on , the sp itself when run by user will take this settings.
"It is slightly more complicated to resolve ANSI_NULL problems when dealing with stored procedures, triggers and views as the ANSI_NULLS setting is saved when these objects are created or altered and is enabled (used) upon their execution. In other words, these objects inherit the ANSI settings of the user session that is used to creates them."
This is explain by the url below.
Understanding the Implications of ANSI SQL92 SET Options
http://www.sqlservercentral.com/articles/Administration/understandingtheimplicationsofansisql92setoptions/482/
No comments:
Post a Comment