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 |
 |
 |
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 |
 |
 |
|