OrWolf
MIS
- Mar 19, 2001
- 291
I'm currently developing several web solutions for a client on a development server. The issue is that the database connection string is different on the production server than the development server. This is a real problem since I have to update all of the connection strings anytime I publish my web. Is there a way I can have my code verify it's location to decide which string to use in my code? Is there another solution? Note: The system default points me to the wrong location, so the location must be specified.
Development:
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:/inetpub/intradev/awareness/fpdb/EDF2K.mdb;Persist Security Info=False"
Production:
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:/inetpub/ Security Info=False"
Development:
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:/inetpub/intradev/awareness/fpdb/EDF2K.mdb;Persist Security Info=False"
Production:
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:/inetpub/ Security Info=False"