lothos12345 Posted September 1, 2003 Posted September 1, 2003 Is there away to modify the Connection String of a VB.NET program using the wizard to make it look at the Environment.Current Directory. I have a program that I want to install on other computers however I want the program to also install the database on the installation computer as well. Thus the program will look on what ever computer it is on for the database thus a 'Current Directory' kind of thing. Using the connection wizard is there away to accomplish this task. The database that I am using is an Access one. Any help with this question will greatly be appreiciated. Quote
Moderators Robby Posted September 1, 2003 Moderators Posted September 1, 2003 You should make the connection at run-time. Quote Visit...Bassic Software
lothos12345 Posted September 1, 2003 Author Posted September 1, 2003 I know, however it was I wrote the whole program off the the Connection object that the wizard provided for me. So rewritting it now would be quite troublesome. Is there a way to cause the connection object created by the wizard to look at the current directory, the same way you could in code? Quote
Administrators PlausiblyDamp Posted September 2, 2003 Administrators Posted September 2, 2003 How many places is the ConnectionString referenced? It probably wouldn't be that hard to convert the code. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.