Jul 22, 2005 #1 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]'?
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]'?
Jul 23, 2005 1 #2 earthandfire Programmer Mar 14, 2005 2,924 GB I believe the N prefix indicates Unicode (i.e) 2 bytes for each character instead of the normal one. Hope this helps. Upvote 0 Downvote
I believe the N prefix indicates Unicode (i.e) 2 bytes for each character instead of the normal one. Hope this helps.
Jul 23, 2005 #3 chiph Programmer Jun 9, 1999 9,878 US 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 Upvote 0 Downvote
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