Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2007, 01:33 AM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP/DB Concern Help!!

I need some suggestions. I'm new to asp database programming. I have an asp page that will upload a text file to the server and replace the current data in an Access table with data from the text file. I'm using DNS-less connection. This won't be a busy site. There will be approx. 400-600 records.

1. What is the best method/order of doing this. For example, should I delete all records from the table and then just insert all the new ones? -or- Create a temp table with new data (because adding the new data to the db will be the longest operation), delete the old table, then rename the temp table? etc?

2. Should I be concerned about any connections that may be present on the database before I delete/change the database? Will I get an error when deleting/updating if someone is connected to it?

 
Old February 26th, 2007, 08:54 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

You could just have your app read the text file and update the Access table without having to upload the file to the server, unless that is one of the requirements someone else has ordered, if I'm understanding you correctly. It sounds like you're going to delete the data in the target table and replace it with the data that's in the file. Of course it depends on other factors like if there is relational data in other tables that will be referencing the data in the target table.

You won't get an error but someone else might if they are looking at a page with data that gets deleted and then they refresh the page. Other than that there shouldn't be a problem with that.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory concern cyb3rt3k Access VBA 1 February 15th, 2008 09:30 AM
Security concern vs2008 mvc rajivkalra Visual Studio 2008 1 February 9th, 2008 08:34 AM
Re: ASP DB/RS functions in ASP.NET spinout ASP.NET 2.0 Basics 7 May 29th, 2007 11:00 AM
Concern and feedback picnn Intro Programming 1 October 30th, 2006 02:36 PM
Finding the DB Sailor.mdb of Beginning ASP DB book anna Classic ASP Databases 2 August 5th, 2006 01:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.