{"id":631,"date":"2014-02-14T23:04:09","date_gmt":"2014-02-14T23:04:09","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=631"},"modified":"2022-02-03T11:25:03","modified_gmt":"2022-02-03T17:25:03","slug":"sql-server-access-ms-2010-access-database-password-finally","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/","title":{"rendered":"SQL Server access MS 2010 Access database with password. Finally"},"content":{"rendered":"<p>So I have had LOTS of attempts to get into a password protected MS 2010 Access database and most people online say it cannot be done (the advice in many google&#8217;ed articles) , however <a href=\"https:\/\/go4answers.webhost4life.com\/Example\/linked-server-password-protected-access-62092.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">one guy gave me the hint to get this solved for me in &#8220;Answer 4&#8221;<\/a>.<\/p>\n<p>Scenario:<\/p>\n<ol>\n<li>I am connected to SSMS on domain #1 called F which is a SQL Server on Domain D<\/li>\n<li>MS Access file is on Domain D on the c drive c:\\Temp\\dB123.accdb (this c: drive is the one where the SQL Server is running)<\/li>\n<li>In SSMS, I made a new Linked Server using the GUI<!--more-->\n<ol>\n<li>Server Objects-&gt;Linked Server-&gt;R Mouse Click New Linked Server<\/li>\n<li>Type TEST2 in the linked server<\/li>\n<li>Chose Other data source<\/li>\n<li>Provider: Microsoft Office 12.0 Access Database Engine OLE DB Provider\n<ol>\n<li>for this to show up you need to install some s\/w, run 3 queries AND set a registry entry on the same computer that SQL Server is installed on. <a title=\"Reading Access 2010 .mdb files from SQL Server directly\" href=\"http:\/\/elbsolutions.com\/projects\/reading-access-2010-mdb-files-sql-server-directly\/\" target=\"_blank\" rel=\"noopener noreferrer\">See this article I have already written.<\/a><\/li>\n<\/ol>\n<\/li>\n<li>Product Name: c:\\temp\\dB123.accdb\n<ol>\n<li>&lt;I think can be anything you want it to be&gt;<\/li>\n<\/ol>\n<\/li>\n<li>Provider String: ;PWD=your_fav_pwd\n<ol>\n<li><strong>HERE IS WHERE YOU PUT THE PASSWORD AND NO WHERE ELSE.<\/strong> Not sure if you need the preceeding ; or not but just put it in cause it works.<\/li>\n<\/ol>\n<\/li>\n<li>Press OK. If it is all correct, it will just work!<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Do you want a script to do this? Simply right mouse on TEST2 and choose &#8220;Script Linked Server As-&gt;DROP AND CREATE TO-&gt;File&#8221; and save it somewhere.<\/p>\n<p>So you want to be able to test it? If you look at the article that I sent you &#8211; try the one that didn&#8217;t work for him.<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\nSelect * FROM TEST2...AreaT\r\n\r\n<\/pre>\n<p>And you get results. Holy smokes it works after hours of try this and that and googling.<\/p>\n<p>Synonym to this dB? No problem<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\nCREATE SYNONYM &#x5B;dbo].&#x5B;12313_EHT_AreaT] FOR TEST2...AreaT\r\nGO\r\n\r\nSELECT * from &#x5B;dbo.12313_EHT_AreaT]\r\n\r\n<\/pre>\n<p>Now was that so hard? The short answer is yes &#8211; very hard!<\/p>\n<h2>What if you run this SP from lets say ASPX app with a diff user?<\/h2>\n<p>OK, so it all worked in SSMS &#8211; but when the aspx app ran it , I got an error<\/p>\n<p style=\"padding-left: 30px;\">The OLE DB provider &#8220;Microsoft.ACE.OLEDB.12.0&#8221; for linked server &#8220;TEST2&#8221; reported an error. Authentication failed. Cannot initialize the data source object of OLE DB provider &#8220;Microsoft.ACE.OLEDB.12.0&#8221; for linked server &#8220;TEST2&#8221;. OLE DB provider &#8220;Microsoft.ACE.OLEDB.12.0&#8221; for linked server &#8220;TEST2&#8221; returned message &#8220;Cannot start your application. The workgroup information file is missing or opened exclusively by another user<\/p>\n<p>Crap &#8211; so now what? Well, the Stored Proc which had the code &#8211; that worked now &#8211; was being called from ASPX as another user called AppUser-Module-Summary-User (the user in the connection string). This Stored Proc needed a GRANT for this user to EXECUTE it &#8211; that is assumed that this is done &#8211; it is the rest that we have to do. If you to to TEST2-&gt;Properties, go to the 2nd Security tab and add a user<\/p>\n<ul>\n<li>goto TEST2-&gt;Properties (right mouse click &#8211; Properties)<\/li>\n<li>Go to the Security Tab (choose this on the left)<\/li>\n<li>Click Add in the Users box<\/li>\n<li>Choose the user from the pulldown choose our user AppUser-Module-Summary-User<\/li>\n<li>Fill in the username<\/li>\n<li>Fill in the password<\/li>\n<li>Leave the impersonate unchecked<\/li>\n<li>The bottom part is for all other users. CLick Be Made Without A Security Context<\/li>\n<\/ul>\n<p>OK &#8211; we are not done. Try a blank password or the password above and &#8230; forget about it working. It will either give you an error and if you leave the password blank or look like it is working. Leave the password in for now (heck, put Santa &#8211; we will fix it). After doing some digging, \u00a0another hint arrived (see <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/windows\/en-US\/2cdb0394-b757-4b4c-96e6-927100d8eebd\/cannot-start-your-applicationthe-workgroup-information-file-is-missing-or-opened-exclusively-by\" target=\"_blank\" rel=\"noopener noreferrer\">this<\/a> and scroll down to <a href=\"http:\/\/blogs.msdn.com\/b\/spike\/archive\/2009\/05\/08\/msg-7399-the-ole-db-provider-microsoft-jet-oledb-4-0-for-linked-server-linked-server-reported-an-error-authentication-failed.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">&#8216;Michael&#8217;s suggestion&#8217;<\/a>) which gives JUST enough info to get over this. Do these last steps<\/p>\n<p>Go ahead and look at the script for this user by R mouse clicking on TEST2-&gt;Script Linked Server AS-&gt;DROP and CREATE to-&gt;New Query Editor Window<\/p>\n<p>Lets look at the code before and after. The lines with sp_addlinkedsrvlogin is what we are looking at here. The first is the &#8220;other users&#8221; that we set above. But the 2nd is for our new user &#8211; why is there #### in the\u00a0@rmtpassword??? Fix it by setting it to an empty string. Fixed<\/p>\n<p>Before<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\nEXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TEST2',\r\n@useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL\r\nEXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TEST2',\r\n@useself=N'False',@locallogin=N'AppUser-ModuleSummary-User',\r\n@rmtuser=N'Admin',@rmtpassword='########'\r\n\r\n<\/pre>\n<p>After<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\r\nEXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TEST2',\r\n@useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULL\r\nEXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TEST2',\r\n@useself=N'False',@locallogin=N'AppUser-ModuleSummary-User',\r\n@rmtuser=N'Admin',@rmtpassword=''\r\n\r\n<\/pre>\n<p>Now it works. Go figure. So like all Access databases, the user is Admin and password is indeed blank. The filename password must be a different password altogether and that is why I was so messed up for so long. MS Access is truely a beast of its own.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I have had LOTS of attempts to get into a password protected MS 2010 Access database and most people online say it cannot be done (the advice in many google&#8217;ed articles) , however one guy gave me the hint to get this solved for me in &#8220;Answer 4&#8221;. Scenario: I am connected to SSMS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-631","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL Server access MS 2010 Access database with password. Finally - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server access MS 2010 Access database with password. Finally - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"So I have had LOTS of attempts to get into a password protected MS 2010 Access database and most people online say it cannot be done (the advice in many google&#8217;ed articles) , however one guy gave me the hint to get this solved for me in &#8220;Answer 4&#8221;. Scenario: I am connected to SSMS [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-14T23:04:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:25:03+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"SQL Server access MS 2010 Access database with password. Finally\",\"datePublished\":\"2014-02-14T23:04:09+00:00\",\"dateModified\":\"2022-02-03T17:25:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/\"},\"wordCount\":893,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/\",\"name\":\"SQL Server access MS 2010 Access database with password. Finally - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2014-02-14T23:04:09+00:00\",\"dateModified\":\"2022-02-03T17:25:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/sql-server-access-ms-2010-access-database-password-finally\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server access MS 2010 Access database with password. Finally\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server access MS 2010 Access database with password. Finally - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server access MS 2010 Access database with password. Finally - ELB Solutions.com Inc.","og_description":"So I have had LOTS of attempts to get into a password protected MS 2010 Access database and most people online say it cannot be done (the advice in many google&#8217;ed articles) , however one guy gave me the hint to get this solved for me in &#8220;Answer 4&#8221;. Scenario: I am connected to SSMS [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2014-02-14T23:04:09+00:00","article_modified_time":"2022-02-03T17:25:03+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"SQL Server access MS 2010 Access database with password. Finally","datePublished":"2014-02-14T23:04:09+00:00","dateModified":"2022-02-03T17:25:03+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/"},"wordCount":893,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/","url":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/","name":"SQL Server access MS 2010 Access database with password. Finally - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2014-02-14T23:04:09+00:00","dateModified":"2022-02-03T17:25:03+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/sql-server-access-ms-2010-access-database-password-finally\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"SQL Server access MS 2010 Access database with password. Finally"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=631"}],"version-history":[{"count":9,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/631\/revisions"}],"predecessor-version":[{"id":2824,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/631\/revisions\/2824"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}