Thats what I did, I set the connectionstring at runtime. But now I have another problem. My application copies files to a folder thats in the same folder as the application, I was using relative addressing ' for example, instead of using c:\myprog\media, I just use media', and it was working fine. But after I started using OpenFileDialog, I got these errors that the folder media is not found, it looks for the folder media in the same folder that I chose a file using OpenFileDialog.........