473,566 Members | 2,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent help - setup test environment

77 New Member
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={Micros oft Access Driver (*.mdb)};dbq=d: \database\clien thomedbo.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\project s\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 1269
jhardman
3,406 Recognized Expert Specialist
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
4971
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 here or offline? thanks Tom
1
5424
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 create that test environment.... then its will be a big task by itself. Instead one possible solution I can think of is to use UI and set up the...
4
2535
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 creates. Is there a way to configure Visual Studio to do this Thanks in advance - Pete H
16
2904
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: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException:...
10
3846
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 (UAT environment). Database B is supposed to be faster since it is partitioned. It has Referential integrity (RI) and indexes defined on it. Does...
6
5463
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 22050 -y /home/transla1/public_html/cybertube/web/uploads/video/ generated/31_70_AK000005.AVI.flv '; //exec($str); runExternal($str,$code); echo...
6
5736
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 to do instead? just clicking the setup.py-file never works.
2
2820
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 decided that all our user desktop workstations (a few hundred) should be upgraded to the V9 runtime client before we migrate the server to V9. This...
3
277
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 attribute. Jean-Paul
0
7673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7645
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.