N and U in OBJECT_ID

  • What does N and U stand for/do when using OBJECT_ID?

    IF OBJECT_ID(N'tempdb..#test', 'U') IS NOT NULL

  • rshafer (11/24/2008)


    What does N and U stand for/do when using OBJECT_ID?

    IF OBJECT_ID(N'tempdb..#test', 'U') IS NOT NULL

    This is a unicode (nvarchar) string: N'tempdb..#test'

    This, 'U', mean user defined table.

    You can find the different object types by looking up the sys.objects table in Books Online.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply