I had a question regarding OBJECT_ID and using it with DROP
and CREATE
tables.
WHERE object_id = OBJECT_ID(N'[dbo].[YourTable]') AND type in (N'U'))
What does the "N" in the above code do? I understand that 'U' is a user-defined table. I tried looking the meaning of 'N' however I cannot find a sastifying reason.
Two examples:
Does the 'N' do anything specific when checking the existance of a user-defined table for the purpose of dropping or creating a table?