Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats the N for 1

Status
Not open for further replies.

cglaves

Technical User
Jun 7, 2001
8
US
In a query like:

select * from dbo.sysobjects where id = object_id(N'[dbo].[Users]') and OBJECTPROPERTY(id, N'IsUserTable') = 1

what the heck is the N before the string '[dbo].[Users]'?
 
I believe the N prefix indicates Unicode (i.e) 2 bytes for each character instead of the normal one.


Hope this helps.
 
earthandfire is correct. You should use it whenever the column you're comparing with is of type NCHAR, NVARCHAR, or NTEXT.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top