What does N... mean?

  • I see queries where a capital N precedes strings in single quotes. Ie:

    OBJECTPROPERTY

    (id, N'IsProcedure')

    What does the N do? I can't find any reference to it in Books Online.

     

    Thanks

    Ben

  • 'N' casts the string as a double-byte string (two bytes per character, international language support).  The destination field is type nchar, nvarchar, etc. 

  • Also known as UNICODE DataType!

    Look in BOL for more info!


    Kindest Regards,

  • So am I correct in thinking that if I'm dealing with international (non-english) databases that I want to treat everything as unicode?

    Ben

Viewing 4 posts - 1 through 3 (of 3 total)

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