asp.net - How can I open an access database in c#? -
i'm trying open access database extension .accdb can read information database. have no problem doing this, if use wizard:
however when try use code exception when try connect:
from debugging understood exception comes not having opened connection. open connection the database comes empty:
i have looked around stack overflow , tried apply many of answers similar questions haven't worked. in theory if can connect through wizard should able connect through oledbconnection object in c#. how can fix this?
i found problem. table name had space between "tab_project data" , because didn't use [] looking table named "tab_project" couldn't find. had put "[tab_project data]" inside query , works.
Comments
Post a Comment