Connect to Access 2016 database through OLEDB
I'm trying to make a simple connection to a microsoft access 2016 database through a vb.net code, it's very simple:
Cn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Data\VBtest\ConnectigToSecuredAccessDB\Production3.accdb; Jet OLEDB:Database Password=aros20;"
The database was encrypted using MS Access 2016, when I run the code I get the following error message:
"An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt".
When I decrypt the same database and use it with the connection string: Cn.ConnectionString = "PROVIDER=Microsoft.ACE.OLEDB.12.0;Data Source = D:\Data\VBtest\ConnectigToSecuredAccessDB\Production.accdb"
it works fine which means the database is OK and the problem is in the encryption. What could the problem be? I'm confused. Encryption of the database is very important and I need it. Many thanks for your help.
I had the exact same problem: Database working without password protection, OleDbException as soon as I put on a password. Now I'm not exactly sure what I did, suddenly it worked. Installing the 2010 AccessDatabaseEngine might have been the key, but now I'm not able to verify. I hope you find out!
vibratory bowl feeder
we provide quality viratory bowl feeders and we have many other machine which will give you idea, we are vibratory bowl feeder manufacture in pune and provide best services.0 votes1 answervibratory bowl feeder3 months ago
Study Guides or Test Sample for the position of Admin asst?
Study Guides or Test Sample for the position of Admin asst? I’m testing for administrative Asst in the civil service sector.So I’ve to take a test to MS Word and Excel. and it’s practical to test my abilities.0 votes5 answersLiza John3 months ago
Connect to Oracle using SqlSriverConnect
Fingers crossed someone can help. I am looking for a connection string to use in MS Access 2010 to connect to Oracle using SqlSriverConnect so that I can specify SQLDRIVERNOPROMPT. My attempts to format a connection string to date have been unsuccessful. Please accept my thanks in advance.0 votes3 answersDes Davies3 months ago
Access 2010 to SQL server 2014 for updateable recordset
Trying to create an updatable form in Access 2010 connected to sql server 2014. I Don't want to use linked tables as many results will be provided by stored procedures. Using0 votes3 answersunknown4 months ago
ODBC attribute query
hi What does MLD=0 represent in the attribute of a Odbc Connectstring? Thanks N0 votes0 answersN M4 months ago
Accessing a mysql database from external host/ip? (ie: mysql workbench)
I have a mysql server running on x.x.x.x, and can access it internally no problem (of course). However when attempting to connect externally, ie using mysql workbench, or even from an external server, I get the error message "Host 'bla.bla.bla' is not allowed to connect to this MySQL server".0 votes0 answersJack Alex5 months ago
The'microsoft.ACE>OLEDB.12.0' provider is not registered on the local machine
when i was trying to connect my access file to C# program while running i faced the popup with that "The'microsoft.ACEOLEDB.12.0' provider is not registered on the local machine". please provide any solution that can help me to find answer.0 votes0 answerssubham samir6 months ago
Access 2010 Connection String with Visual Basic.Net 2010 on Web Server
I have an access database on a web server with CPANEL and I want to connect an application created in Visual Basic .Net 2010, I want to be able to connect to it and modify data, but I can not find the connection string ... I hope your answer thanks!0 votes0 answersAlex Jiménez6 months ago
Open connection code problem
I am upgrading an Access 98 to Access 2007 and having problems with "open connection" code. The old code is 'Open connection set ConnObj = server.CreateObject("ADODB.Connection") ConnObj.Open "datatronics"0 votes1 answerunknown7 months ago
- Load more posts