{"id":5030,"date":"2013-03-26T18:28:16","date_gmt":"2013-03-26T18:28:16","guid":{"rendered":"http:\/\/craftydba.com\/?p=5030"},"modified":"2013-03-27T15:31:50","modified_gmt":"2013-03-27T15:31:50","slug":"ms-access-n-azure-sql-database","status":"publish","type":"post","link":"https:\/\/craftydba.com\/?p=5030","title":{"rendered":"MS Access -N- Azure SQL Database"},"content":{"rendered":"<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/windows-azure-cloud.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-4792\" title=\"windows-azure-cloud\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/windows-azure-cloud-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>I knew <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windowsazure\/ee336279.aspx\">Windows Azure SQL Databases<\/a> have been around for a couple of years but never had the time or need to research them. With a possible data center consolidation in the future, I was wondering if my company could leverage a Windows Azure SQL Databases to reduce the total cost of ownership for certain applications?<\/p>\n<p>Today, I will be working with the sample [AUTOS] cloud database that I created in a previous blog.  I want to test connectivity to this cloud database using common programs and tools that my users or developers might choose.  <\/p>\n<p>I will be testing how a power user can use <a href=\"http:\/\/office.microsoft.com\/en-us\/access\/\">MS Access<\/a> to manipulate data within a Azure database.  <\/p>\n<p>I am assuming that you read my <a href=\"https:\/\/craftydba.com\/?p=1866\">article<\/a> on creating a ODBC connection.  The only change is the source of the database.  Use the \u201cnpx8eftmd0.database.windows.net\u201d server address as the source.  Before it was local, now it is in the cloud.  <\/p>\n<p>You will also need to create Access Linked Tables using my <a href=\"https:\/\/craftydba.com\/?p=1893\">article<\/a> as a reference.  Your database should look like mine below with two linked tables and one linked view.<\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task1-access-2-cloud-linked-tables-n-views.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task1-access-2-cloud-linked-tables-n-views-1024x510.jpg\" alt=\"\" title=\"task1-access-2-cloud-linked-tables-n-views\" width=\"665\" height=\"331\" class=\"aligncenter size-large wp-image-5041\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task1-access-2-cloud-linked-tables-n-views-1024x510.jpg 1024w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task1-access-2-cloud-linked-tables-n-views-300x149.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task1-access-2-cloud-linked-tables-n-views.jpg 1062w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>Performing a CRUD &#8211; (create, read, update &#038; delete) test will make sure Azure performs like any local database we worked with before.  <\/p>\n<p>First task is to create or <span style=\"color: #BB0000;\">INSERT<\/span> a new record for the Plymouth make.<\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task2-access-2-cloud-insert-new-record.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task2-access-2-cloud-insert-new-record-1024x510.jpg\" alt=\"\" title=\"task2-access-2-cloud-insert-new-record\" width=\"665\" height=\"331\" class=\"aligncenter size-large wp-image-5044\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task2-access-2-cloud-insert-new-record-1024x510.jpg 1024w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task2-access-2-cloud-insert-new-record-300x149.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task2-access-2-cloud-insert-new-record.jpg 1063w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>Second task is to incorrectly <span style=\"color: #BB0000;\">UPDATE<\/span> the Ford maker to Henry Ford.<\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task3-access-2-cloud-update-old-record.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task3-access-2-cloud-update-old-record-1024x511.jpg\" alt=\"\" title=\"task3-access-2-cloud-update-old-record\" width=\"665\" height=\"331\" class=\"aligncenter size-large wp-image-5047\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task3-access-2-cloud-update-old-record-1024x511.jpg 1024w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task3-access-2-cloud-update-old-record-300x149.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task3-access-2-cloud-update-old-record.jpg 1062w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>Third task is to correctly <span style=\"color: #BB0000;\">UPDATE<\/span> the Ford maker record back to its original state.<\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task4-access-2-cloud-restore-old-record.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task4-access-2-cloud-restore-old-record-1024x509.jpg\" alt=\"\" title=\"task4-access-2-cloud-restore-old-record\" width=\"665\" height=\"330\" class=\"aligncenter size-large wp-image-5051\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task4-access-2-cloud-restore-old-record-1024x509.jpg 1024w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task4-access-2-cloud-restore-old-record-300x149.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task4-access-2-cloud-restore-old-record.jpg 1062w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>The fourth and last task is to <span style=\"color: #BB0000;\">DELETE<\/span> the new Plymouth record from the table.<\/p>\n<p><a href=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task5-access-2-cloud-delete-new-record.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task5-access-2-cloud-delete-new-record-1024x512.jpg\" alt=\"\" title=\"task5-access-2-cloud-delete-new-record\" width=\"665\" height=\"332\" class=\"aligncenter size-large wp-image-5052\" srcset=\"https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task5-access-2-cloud-delete-new-record-1024x512.jpg 1024w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task5-access-2-cloud-delete-new-record-300x150.jpg 300w, https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/task5-access-2-cloud-delete-new-record.jpg 1062w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>Since MS Access automatically updates the data grid after a change, we do not need to test the read or <span style=\"color: #BB0000;\">SELECT<\/span> functionality.<\/p>\n<p>In summary, connecting a MS Access database requires the creation of a ODBC data source using the newest client driver and the creation of linked tables to access\/manipulate the remote tables.  Next time I talk about Azure, we will be exploring how to pull data from Azure into MS Excel.<\/p>\n<p><a href='https:\/\/craftydba.com\/wp-content\/uploads\/2013\/03\/MS-ACCESS-AUTOS-DBMS-IN-THE-CLOUD.zip'>Sample Database<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I knew Windows Azure SQL Databases have been around for a couple of years but never had the time or need to research them. With a possible data center consolidation in the future, I was wondering if my company could leverage a Windows Azure SQL Databases to reduce the total cost of ownership for certain applications? Today, I will be working with the sample [AUTOS] cloud database that I created in a previous blog. I want to test connectivity to this cloud database using common programs and tools that my&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[786,784,33,30,15,412,799,37,32],"class_list":["post-5030","post","type-post","status-publish","format-standard","hentry","category-db-dev","tag-azure-sql-database","tag-cloud-computing","tag-delete","tag-insert","tag-john-f-miner-iii","tag-ms-access","tag-odbc-connection","tag-select","tag-update"],"_links":{"self":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts\/5030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5030"}],"version-history":[{"count":0,"href":"https:\/\/craftydba.com\/index.php?rest_route=\/wp\/v2\/posts\/5030\/revisions"}],"wp:attachment":[{"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftydba.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}