0

hi, i would like to ask where should i put my access database before publishing my application?? its inside my "windowsformapplication1" folder in project folder.. but when i publish it, there's no database in it. lol, already created an application yer doesnt know how to publish w database. :D

thanks...

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by kapojian
0

YOu cannot "embade" Access dataBase into your project, as for example you can do with MS SQL Express dataBase.
What you can do is to use a connection string with explicitly setting the path to the dataBase, and then is expected that the dataBase has to be there on that path.
Or you can use an OpenFileDialog class to ask a use to find his dataBase on hdd. Use filter for showing only files form access.

0

YOu cannot "embade" Access dataBase into your project, as for example you can do with MS SQL Express dataBase.
What you can do is to use a connection string with explicitly setting the path to the dataBase, and then is expected that the dataBase has to be there on that path.
Or you can use an OpenFileDialog class to ask a use to find his dataBase on hdd. Use filter for showing only files form access.

what do you mean by explicity setting the path??
i have a connection string in my program. in my program u can create an account and that account will be saved in my access database.. thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.