CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 ODBC Connections

Print topic Send  topic

Author Message
cobom


Posts: 55
Posted: 04/13/2005, 7:28 AM

General question - is there an easy way to change the dbConnection for an entire site? If I move a completed project from one web server to another, along with the database, I get a lot of connections errors on different pages - probably because I use drop downs in the forms that have me select specific connections.

My goal was to have a different development site on another server to continue improving the project, then publish to the main server.

Am I missing something simple here?
_________________
cmckinney@searay.com

Will program for a Sea Ray 680 SS ;}
View profile  Send private message
marcwolf


Posts: 361
Posted: 04/13/2005, 8:02 PM

Hi.

Well - from my own experiences (and I use ASP) the ODBC connection details are in common.asp.. Which is regenerated each time you do a change to any page.
We have on several occasion moved an application from one location to another without any problems with the database access just by making sure the any connections in the common.asp are changed.

If you use security - you might also look to see where the SERVERURL variable in common.asp is pointing to and change that as well.

What we do is to take a copy of the connection strings and put them into a APPLICATION variable, and then use this application variable for any non-CCS generated accesses.


Like yourself - I have a development version and a live version. Once I have the live version running on the server I only FTP up files that I have generated and changed. NEVER the common.asp file as this contains local information..

Hope it helps.



_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.