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:

enter image description here

enter image description here

enter image description here

enter image description here

however when try use code exception when try connect: enter image description here

enter image description here

from debugging understood exception comes not having opened connection. open connection the database comes empty:

enter image description here

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

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -