Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data view problem

Status
Not open for further replies.

mnongkhlaw

Programmer
Feb 22, 2002
62
IN
Dear all,

Some wiered thing happened. I have a Visual Interdev 6 Enterprise app using a data connection to a database file (mdb). The app was running fine and the data view showed the correct database. Initially, I used an easy-to-guess name for the database and it was located in another folder (not the application's root). Since the site was to be deployed in a production server, I changed that name to another (supposedly harder to guess) one and also stored the mdb file in the application's root directory. I changed the connection object to point to this new name and directory, but surprise of surprises, the Data view still showed my old database name and old location, although global.asa's connection string now points to the new name and new location.

More surprises was in store: I copied the site to another machine and tried to run it. It ran fine!

Now what's this going on? And how can I resolve it?

TIA
Mark.
 
The DataView stores the connection details in global.asa AND in _private/dataEnvironment/dataEnvironment.asa. This can only be edited via the pop-up dialog boxes.

If you only use the Application("cn_...") settings in your code, and place SQL directly into the recordsetDTC - and do not use DataEnvironment commands (right-click on a connection in the global.asa file to add them), then this DataEnvironment.asa copy is only used at design-time.
 
Thanks MerlinB. The connection string in the command object was the culprit; I observed that it was not updated to reflect the new connection. After I corrected it, it ran without a hitch.

Mark Nongkhlaw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top