473,387 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Urgent help - setup test environment

I am new to ASP, but been asked to look into a production issue.
I was looking at the code and found this,

data_source = "driver={Microsoft Access Driver (*.mdb)};dbq=d:\database\clienthomedbo.mdb"

I would like to create a test environment in my C drive. So I copied all active server pages from the prodcution drive (D drive) to my C drive. I was going into each active server page code and changing d:\database\ to c:\work\projects\database\ inorder to point to my test environment which is my C drive. I have almost 200 active server pages. My question is is there a better way to setup my test environment other than copying all to my drive and then going in and changing the path?

Please treat this as urgent.

Thanks
Jan 2 '08 #1
1 1264
jhardman
3,406 Expert 2GB
The better way to do this is set up a data source name "DSN" in control panel -> administrative tools -> Data sources, then you only need to refer to the data source name in your scripts and you only need to change its location once. Now that your scripts have already been written with a long file path, I don't see an easy way around going into each of them and changing them individually. Of course, you could write a script to make the change in each of them... Let me know if this answers your question.

Jared
Jan 3 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tom Jones | last post by:
I need to access databases on both win2k and Linux systems but I have to set up the DSNs under program control ... no uses using GUIs ... Has anyone done this? if so can we discuss it either in...
1
by: Kiran | last post by:
Hi, I am looking for a way to setup my databases for my unit test case to run. basically my class needs some test environment to me available before I can test it, and if I have to write code to...
4
by: Pete H | last post by:
I would like to have my new C++ projects start out with two configurations, UnicodeDebug and UnicodeRelease, instead of the standard Debug and Release configurations that Visual Studio always...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
10
by: shsandeep | last post by:
DB2 V8.2 ICE Linux An application is loading around 6 million rows in a table in database A (Development environment). The same application is taking ages to load the same table in database B...
6
by: xhe | last post by:
I am using ffmpeg to convert video, this is a sample script: $str='/home/transla1/bin/ffmpeg -i /home/transla1/public_html/ cybertube/web/uploads/video/31_AK000005.AVI -s 240x180 -b 100k -ar...
6
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have...
2
by: Scav | last post by:
Helpful folks, We recently upgraded DB2 V7 to V8 on Windows 2003 Enterprise Edition. The plan is to migrate to V9 as soon as possible. In anticipation of that migration, IT management has...
3
by: Jean-Paul Calderone | last post by:
On Tue, 29 Jul 2008 19:26:09 +0200, Nikolaus Rath <nikolaus@rath.orgwrote: Eh sorry, you're right, the above is broken. `setUpResult` should be a class attribute instead of an instance...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.