CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 common.asp and Connection string

Print topic Send  topic

Author Message
Oper


Posts: 1195
Posted: 08/15/2004, 2:02 PM

Always i have to change my Conection string to this:

  
        dim curdir  
        curDir = Server.MapPath("/data/MYTable.mdb")  
        ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& curdir & ";Persist Security Info=False"

every time i generate the common file i have to change back again.

what should be the best way to avoid this?
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
peterr


Posts: 5971
Posted: 08/15/2004, 2:17 PM

Please delete the Common.asp file (except any custom code you may have at the end of it). It will be then re-generated with the correct connection string(s), based on your Database Server Connection configuration.
Please try to never modify this manually in the code.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

Web Database

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.