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
826 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now