I have a connection string with the Access database:
@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\lentes.accdb;Persist Security Info=False";
When I run this code I always give the error "The keyword 'Provider' is not supported."
PS. has nothing after that code yet, that's all:
string strcon = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\lentes.accdb;Persist Security Info=False";
SqlConnection con = new SqlConnection(strcon);
con.Open();
Then I execute the try and catch to see the error and the error that I said.