.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

Difference between Varchar(MAX) and TEXT Datatype in Sql Server?

Posted By: Deco     Posted Date: September 21, 2010    Points:2   Category :Sql Server
Please explain me the exact diffrence of these two in detail.

on which scenario VARCHAR(MAX) is used and TEXT is used...

Responses
Author: Jean Paul             
Posted Date: September 28, 2010     Points: 5   

The TEXT data type is used to store large amount of text data like text file contents.
The VARCHAR is suitable used for small quantity of data.

In previous versions of Sql Server we need to use READTEXT and WRITETEXT functions to operate on TEXT
datatypes. Now TEXT data types can be dealt like a normal data type using standard DML queries.

The scenarios where TEXT could be advisable is while storing resume contents, html contents etc.
VARCHAR is useful when we are sure the maximum data won't exceed a particular number.

Jean Paul http://jeanpaulva.com/
Author: Akhil Raj       [Moderator]      
Posted Date: September 28, 2010     Points: 5   


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend