What is the purpose of putting an 'N' in front of function parameters in TSQL?
For example, what does the N
mean in front of the function parameter in the following code:
object_id(N'dbo.MyTable')
What is the purpose of putting an 'N' in front of function parameters in TSQL?
For example, what does the N
mean in front of the function parameter in the following code:
object_id(N'dbo.MyTable')
It indicates a "nationalized" a.k.a. unicode string constant.
http://support.microsoft.com/kb/239530
http://msdn.microsoft.com/en-us/library/aa276823%28SQL.80%29.aspx