{"id":2028,"date":"2019-10-21T11:22:58","date_gmt":"2019-10-21T03:22:58","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2028"},"modified":"2022-10-07T07:46:30","modified_gmt":"2022-10-06T23:46:30","slug":"connect-to-ms-access-database","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/connect-to-ms-access-database","title":{"rendered":"Connect to MS Access Database"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2028\" class=\"elementor elementor-2028\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-58e0c120 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"58e0c120\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-74889555\" data-id=\"74889555\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-065edef elementor-widget elementor-widget-heading\" data-id=\"065edef\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How To Connect to MS Access Database<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-668aa542 elementor-widget elementor-widget-text-editor\" data-id=\"668aa542\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<table id=\"table2\" style=\"font-size: 16px; font-style: normal;\" border=\"1\" width=\"530\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr bgcolor=\"#ccccff\"><td><b>Connection String<\/b><\/td><\/tr><tr bgcolor=\"#ffffea\"><td>&#8220;Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};&#8221; &amp;_<br \/>&#8220;UID=;PWD=YourPassword;&#8221; &amp;_<br \/>&#8220;DBQ=DatabasePhysicalPath;&#8221;<\/td><\/tr><\/tbody><\/table><p dir=\"ltr\"><b>You can use sample code below to connect to your MS Access&#8217;s database:<\/b><\/p><p>ConnectionString = &#8220;Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};&#8221; &amp;_<br \/>&#8220;UID=;PWD=SamplePassword;&#8221; &amp;_<br \/>&#8220;DBQ=C:\\Domains\\sample.net\\db\\sample.mdb;&#8221;<\/p><p dir=\"ltr\">Set Conn = Server.CreateObject(&#8220;ADODB.Connection&#8221;)<br \/>Conn.ConnectionString = ConnectionString<br \/>Conn.Open<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>How To Connect to MS Access Database Connection String &#8220;Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};&#8221; &amp;_&#8220;UID=;PWD=YourPassword;&#8221; &amp;_&#8220;DBQ=DatabasePhysicalPath;&#8221; You can use sample code below to connect to your MS Access&#8217;s database: ConnectionString = &#8220;Provider=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};&#8221; &amp;_&#8220;UID=;PWD=SamplePassword;&#8221; &amp;_&#8220;DBQ=C:Domainssample.netdbsample.mdb;&#8221; Set Conn = Server.CreateObject(&#8220;ADODB.Connection&#8221;)Conn.ConnectionString = ConnectionStringConn.Open<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[124],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2028"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2028"}],"version-history":[{"count":6,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2028\/revisions"}],"predecessor-version":[{"id":18623,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2028\/revisions\/18623"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2028"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2028"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2028"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}