Problem connecting Access to Visualstudio

Asked

Viewed 448 times

1

I created a small database in Access and I’m trying to make the connection with Visualstudio, but gives the following error message:

Unrecognized database format 'c: Users wss desktop dbteste.accdb'

How do I fix this?

  • Are you able to open the Bank normally? Do a compress and repair and try again.

  • @Denis I’ve done it and I’m still wrong

  • "Provider=Microsoft.ACE.OLEDB.12. 0;Data Source=c: Users wss desktop dbteste.accdb"

  • Try this string Connection

  • Are you trying to connect via code or by some VS Wizard?

  • For Access 2003 and earlier, the package requires Microsoft Jet’s OLE DB provider and for Access 2007 onwards, the package requires the OLE DB provider for the Microsoft Office 12.0 Access Database Engine. See https://msdn.microsoft.com/pt-br/library/cc280478(v=sql.120). aspx

  • So apparently I decided to change the extension to mdb, I don’t know if that was it

Show 2 more comments

1 answer

1


I fixed changing the extension while saving the file from: .accdb for .mdb

Grateful!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.