solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Whitepapers SQL Server Tools SQL Server Webcasts SQL Server Questions and Answers SQL Server Questions and Answers













use of varchar(max) in sql server 2008r2

Asked 2/17/2012 4:58:57 PM by amir younas

please give me complete information about use of varchar(max) in sql server. about its performance. is it efficient?

its other characteristics. its mirits and demirits.

thanks,

amir



Answered 2/18/2012 6:44:30 AM by Jeremy Kadlec (0) vote answer is useful vote answer is NOT useful

Amir,

This is a pretty broad question.  If you have a need to store data beyond a varchar 8000 column in a single column this is your best bet.  There are some implications on how the data is physically stored, but if you have to store a large amount of data in a single column, those storage implications are a fact of life. 

Alternatively, large data sets, images come to mind, are also sometimes stored in a file system with a pointer stored in the database.

I am not sure if this answers your question or not, I can see if we can provide additional information in a future tip.

Thank you,
Jeremy Kadlec



Post an Answer

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 
Sponsor Information
"SQL diagnostic manager delivers response in minutes, not hours!"

It takes just 5 minutes to connect your SQL Databases to source control. Got 5 minutes? Get started now.

What grade do you think your SQL Servers get? Find out with Edgewood's SQL Server Health Check consulting services.

Find and Fix SQL issues with Foglight Performance Analysis. Get a free copy.

Solving SQL Server problems for millions of DBAs and Devs since 2006. Join now.

Demystify TempDB Performance and Manageability


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | about
authors | contribute | feedback | giveaways | user groups
Some names and products listed are the registered trademarks of their respective owners.


Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com