HI All,
I recently came across some code that looked like this.
IF
EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[!ActiveSchema!].[Marriage]'))
I can't find any documentation on [!ActiveSchema!]
I can only guess and assume that the object_id Function turns that "special" value intot he current schema being used!
Please could someone let me know if this is true or what actually happens here?
Thanks
Chris
----------------------------------------------
Try to learn something about everything and everything about something. - Thomas Henry Huxley
:w00t:
Posting Best Practices[/url]
Numbers / Tally Tables[/url]
SQL-4-Life