SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 difference between nchar and varchar datatype
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

learning_grsql
Posting Yak Master

230 Posts

Posted - 10/11/2012 :  13:59:52  Show Profile  Reply with Quote
Hi,

I have always used both of them alternatively (nchar or varchar datatype) for columns with text values but I would like to know if there are any difference between them.

tkizer
Almighty SQL Goddess

USA
37287 Posts

Posted - 10/11/2012 :  14:05:14  Show Profile  Visit tkizer's Homepage  Reply with Quote
nchar supports unicode data and is fixed width.

varchar doesn't support unicode data and is variable length.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000