{"id":49,"date":"2012-09-08T15:02:27","date_gmt":"2012-09-08T15:02:27","guid":{"rendered":"http:\/\/regina-whipp.com\/blog\/?page_id=49"},"modified":"2013-09-18T17:53:22","modified_gmt":"2013-09-18T21:53:22","slug":"test","status":"publish","type":"page","link":"https:\/\/regina-whipp.com\/blog\/?page_id=49","title":{"rendered":"Data Types"},"content":{"rendered":"<p style=\"text-align: left;\">As you can see, this table not only holds Access Data Types but SQL Server table Data Types.\u00a0 When I create an\u00a0Access database I always have to take into consideration whether it will be upsized to an SQL Server in the future.\u00a0 So, I only use Data Types that are available in an SQL Server table.\u00a0 Below is table showing Access Data Types and there corresponding Data Types in an SQL Server table.\u00a0 You will note not all fields have a match&#8230; that is because they do not exist in an SQL Server table and therefore you will not find them in any of my databases.<\/p>\n<table width=\"765\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col width=\"108\" \/>\n<col width=\"255\" \/>\n<col width=\"69\" \/>\n<col width=\"5\" \/>\n<col width=\"136\" \/>\n<col width=\"192\" \/><\/colgroup>\n<tbody>\n<tr>\n<td width=\"108\" height=\"14\"><strong>Data Type<\/strong><\/td>\n<td width=\"255\"><strong>Description<\/strong><\/td>\n<td width=\"69\"><strong>Storage<\/strong><\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\"><strong>SQL Server<\/strong><\/td>\n<td width=\"192\"><strong>Additional Notes<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"56\"><strong>Text<\/strong><br \/>\n(up to Access 2010)<\/td>\n<td width=\"255\">Use for text or combinations of text and numbers. 255 characters maximum<\/td>\n<td width=\"69\">up to 255 characters<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">NVACHAR (max)<br \/>\nCHAR (size)<br \/>\nVARCHAR (size)<br \/>\nTINYTEXT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"60\"><strong>Memo<\/strong><br \/>\n(up to Access 2010)<\/td>\n<td width=\"255\">Memo is used for larger amounts of text. Stores up to 65,536 characters. <span><strong>Note<\/strong>:<\/span><span> You cannot sort a memo field. However, they are searchable<\/span><\/td>\n<td width=\"69\">64k<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">NVACHAR (max)VARCHAR (size)<br \/>\nTEXT<br \/>\nBLOB<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"15\">Number:<strong> Byte<\/strong><\/td>\n<td width=\"255\">Allows whole numbers from 0 to 255<\/td>\n<td width=\"69\">1 byte<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">TINYINT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\">Number:<strong> Integer<\/strong><\/td>\n<td width=\"255\">Use for integers that range from -32,768 to 32,767. Storage requirement is 2 bytes.<\/td>\n<td width=\"69\">2 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">SMALLINT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"90\">Number:<strong> Long Integer<\/strong><\/td>\n<td width=\"255\">Allows whole numbers between -2,147,483,648 and 2,147,483,647. <span>\u00a0Tip<\/span><span>: Use Long Integer when you create a foreign key to relate to another table&#8217;s AutoNumber primary key field.<\/span><\/td>\n<td width=\"69\">4 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">INT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\">Number:<strong> Single<\/strong><\/td>\n<td width=\"255\">Single precision floating-point. Will handle most decimals (Decimal Precision 7)<\/td>\n<td width=\"69\">4 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">REAL<br \/>\nINT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"90\">Number:<strong> Double<\/strong><\/td>\n<td width=\"255\">Double precision floating-point. Will handle most decimals.\u00a0 Allows whole numbers between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807 (Decimal Precision 15)<\/td>\n<td width=\"69\">8 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">FLOAT<br \/>\n<del>BIGINT<\/del><\/td>\n<td width=\"192\"><strong>9.18.2013 BIGINT removed&#8230;<\/strong>\u00a0 Turns out BIGINT translates to TEXT when linking to an Access Table which causes <strong>#Deleted<\/strong> to show in all the fields\u00a0in the\u00a0Linked Table(s)<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"75\">Number:<strong> Replication ID (guid)<\/strong><\/td>\n<td width=\"255\">Use for storing a globally unique identifier required for replication. Storage requirement is 16 bytes. Note that replication is not supported using the .accdb file format.<\/td>\n<td width=\"69\">\u00a0<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">UNIQUEIDENTIFIER<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\">Number:<strong> Decimal<\/strong><\/td>\n<td width=\"255\">Use for numeric values that range from -9.999&#8230; x 1027 to 9.999&#8230; x 1027.\u00a0 (Decimal Precision 28)<\/td>\n<td width=\"69\">12 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">FLOAT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\"><strong>Currency<\/strong><\/td>\n<td width=\"255\">Use for currency. Holds up to 15 digits of whole dollars, plus 4 decimal places.<\/td>\n<td width=\"69\">8 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">MONEY<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\"><strong>AutoNumber<\/strong><\/td>\n<td width=\"255\">AutoNumber fields automatically give each record its own number, usually starting at 1<\/td>\n<td width=\"69\">4 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">INT<br \/>\nCOUNTER<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"15\"><strong>Date\/Time<\/strong><\/td>\n<td width=\"255\">Use for dates and times<\/td>\n<td width=\"69\">8 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">DATETIME()<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"60\"><strong>Yes\/No<\/strong><\/td>\n<td width=\"255\">A logical field can be displayed as Yes\/No, True\/False, or On\/Off. <strong>Note<\/strong><span>: Can be empty which translates to NULL when upsizing.<\/span><\/td>\n<td width=\"69\">1 bit<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">BIT<\/td>\n<td width=\"192\"><strong>Note<\/strong><span>: Null values are not allowed if you plan to edit and\/or edit data in the table<\/span><\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"30\"><strong>Ole Object<\/strong><\/td>\n<td width=\"255\">Can store pictures, audio, video, or other BLOBs (Binary Large OBjects)<\/td>\n<td width=\"69\">up to 1GB<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">VARBINARY (max)<br \/>\nBLOB<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"42\"><strong>Hyperlink<\/strong><\/td>\n<td width=\"255\">Contain links to other files, including web pages<\/td>\n<td width=\"69\">up to 64,000 characters<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">\u00a0<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\"><strong>Lookup Wizard<\/strong> (Access 2003 and up)<\/td>\n<td width=\"255\">Let you type a list of options, which can then be chosen from a drop-down list<\/td>\n<td width=\"69\">4 bytes<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">\u00a0<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"45\"><strong>Attachment<\/strong> (Access 2010 and Access 2013)<\/td>\n<td width=\"255\">Use an attachment field to attach multiple files, such as images, to a record<\/td>\n<td width=\"69\">\u00a0<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">\u00a0<\/td>\n<td width=\"192\">There is no <strong>Attachment<\/strong> Data Type in SQL Server.\u00a0 The only suggestion I can offer here is <a href=\"http:\/\/msdn.microsoft.com\/library\/hh461480\" target=\"_blank\">FILESTREAM\u00a0Storage<\/a>.<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"28\"><strong>Calculated<\/strong> (Access 2010 and Access 2013)<\/td>\n<td width=\"255\">\u00a0See Allen Browne&#8217;s <a href=\"http:\/\/allenbrowne.com\/casu-14.html\" target=\"_blank\">Tips for Casual Users &#8211; Calculated Fields<\/a><\/td>\n<td width=\"69\">\u00a0<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">\u00a0<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"28\"><strong>Short Text<\/strong><br \/>\n(Access 2013)<\/td>\n<td width=\"255\">Use for text or combinations of text and numbers. 255 characters maximum<\/td>\n<td width=\"69\">up to 255 characters<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">NVACHAR (max)<br \/>\nCHAR (size)<br \/>\nVARCHAR (size)<br \/>\nTINYTEXT<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<tr>\n<td width=\"108\" height=\"28\"><strong>Long Text<\/strong><br \/>\n(Access 2013)<\/td>\n<td width=\"255\">See <strong>MEMO<\/strong><span> field<\/span><\/td>\n<td width=\"69\">64k<\/td>\n<td width=\"5\">\u00a0<\/td>\n<td width=\"136\">NVACHAR (max)VARCHAR (max)<br \/>\nBLOB<\/td>\n<td width=\"192\">\u00a0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\">Last updated July 30, 2013<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_49\" class=\"pvc_stats all  \" data-element-id=\"49\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/regina-whipp.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p style=\"text-align: left;\">As you can see, this table not only holds Access Data Types but SQL Server table Data Types. When I create an Access database I always have to take into consideration whether it will be upsized to an SQL Server in the future. So, I only use Data Types that are available in [&#8230;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_49\" class=\"pvc_stats all  \" data-element-id=\"49\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/regina-whipp.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":80,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-49","page","type-page","status-publish","hentry","odd"],"_links":{"self":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":17,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/49\/revisions"}],"predecessor-version":[{"id":835,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/49\/revisions\/835"}],"up":[{"embeddable":true,"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/80"}],"wp:attachment":[{"href":"https:\/\/regina-whipp.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}