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
833 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SELECT INTO from XML 6 48
Creating a SQLServer BI cube from Oracle data source 4 42
T-SQL Query 9 34
Total count in section based report in SSRS 10 6
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

732 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