I've been working in C# for the first time these past few days and while I'm getting most of it, there's a few quirks i'm not quite sure about.
My current problem is I am developing a program that needs a database, but because I'm going to be moving it from place to place, my current scheme of using an absolute filename for the database won't work in the future.
static OleDbConnection dbConnection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Documents and Settings\\darrenb\\My Documents\\Visual Studio 2008\\Projects\\FileGrabber\\FileGrabber\\bin\\Release\\files.mdb");
Is there some way I can reference the database more locally, like one would do for a website? If so, where would I have to put the database?