all groups > sql server programming > november 2004 >
You're in the

sql server programming

group:

dumb N question


dumb N question Paul Pedersen
11/27/2004 2:49:19 PM
sql server programming: I know this is probably a dumb question, but...

All over the BOL, I see things like this:

WHERE checksum(N'Vegie-spread') = blah blah


What is that N for??


Re: dumb N question Kalen Delaney
11/27/2004 3:01:15 PM
The N prefix indicates a Unicode character string. See "Using Unicode Data"
in Books Online.

--
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com


[quoted text, click to view]

Re: dumb N question Paul Pedersen
11/27/2004 3:16:31 PM
Ah ha! Thank you.

Is it a recommended practice to always use Unicode, even if a system is not
expected to be used in other than American English?



[quoted text, click to view]

Re: dumb N question Kalen Delaney
11/27/2004 4:58:59 PM
If you read the references in Books Online you'll see that Unicode data
takes twice the storage space regular char or varchar data. I wouldn't make
it a practice to always use Unicode, but I would thoroughly evaluate my
current and predicted requirements.

--
HTH
----------------
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com


[quoted text, click to view]

Re: dumb N question Aaron [SQL Server MVP]
11/28/2004 8:43:50 PM
http://www.aspfaq.com/2522


--
http://www.aspfaq.com/
(Reverse address to reply.)




[quoted text, click to view]

Re: dumb N question Paul Pedersen
11/29/2004 8:10:56 AM
Thank you. I actually learned a lot from all that.


[quoted text, click to view]

AddThis Social Bookmark Button