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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 difference between text and ntext field type?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mojpro
Starting Member

15 Posts

Posted - 04/22/2007 :  14:21:43  Show Profile  Send mojpro a Yahoo! Message  Reply with Quote
Hi,
Can you please let me know the diference between these two fields?
TEXT and NTEXT?

Thanks much,

harsh_athalye
Flowing Fount of Yak Knowledge

India
5509 Posts

Posted - 04/22/2007 :  14:45:42  Show Profile  Visit harsh_athalye's Homepage  Click to see harsh_athalye's MSN Messenger address  Send harsh_athalye a Yahoo! Message  Reply with Quote
From BOL:

quote:
ntext: Variable-length Unicode data with a maximum length of 2^30 - 1
text: Variable-length non-Unicode data in the code page of the server and with a maximum length of 2^31-1


Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

jezemine
Flowing Fount of Yak Knowledge

USA
2871 Posts

Posted - 04/22/2007 :  15:07:43  Show Profile  Visit jezemine's Homepage  Reply with Quote
another issue is you shouldn't be using either if you are 2005.

you should use varchar(max) and nvarchar(max) instead.


www.elsasoft.org
Go to Top of Page

mojpro
Starting Member

15 Posts

Posted - 04/22/2007 :  15:56:11  Show Profile  Send mojpro a Yahoo! Message  Reply with Quote
Thank you Harsh Athalye and jezemine.

there are lots of hero in this forums ... :)
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.05 seconds. Powered By: Snitz Forums 2000