Solved

Does anybody have or know of a list of the different SQL Data Types and how many bytes they take up.

Posted on 2011-02-15
7
832 Views
Last Modified: 2012-05-11
Does anybody have or know of a list of the different SQL Data Types and how many bytes they take up.
0
Comment
Question by:Mr_Shaw
7 Comments
 
LVL 16

Assisted Solution

by:EvilPostIt
EvilPostIt earned 75 total points
ID: 34895717
Here is the link.

From this page you can access each data type which includes the size

http://msdn.microsoft.com/en-us/library/ms187752.aspx
0
 
LVL 25

Assisted Solution

by:Lee Savidge
Lee Savidge earned 275 total points
ID: 34895718
select xtype, length from systypes

Lee
0
 
LVL 6

Assisted Solution

by:loopfinity
loopfinity earned 75 total points
ID: 34895721
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 39

Assisted Solution

by:Pratima Pharande
Pratima Pharande earned 75 total points
ID: 34895804
0
 

Author Comment

by:Mr_Shaw
ID: 34895883
select xtype, length from systypes


Is length the number of bytes.
0
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 275 total points
ID: 34895952
Yes. The query is this: select name, length from systypes

I chose the wrong column.

Lee
0
 

Author Closing Comment

by:Mr_Shaw
ID: 34898376
Thanks....  systypes is very useful...
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question