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 December 20th, 2006, 07:04 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default How to check if exists BEFORE the Insert

Hi,

I am struggling with the next:

I take some record from a DB T1 (in DBF)
Now I copy the data to an SQL DB T2.
The table of the SQl DB has a table called "done". This one is set to '0' incicially. Later in another program it can be set at '1'.

Every now and the I need to update the DB T2 with data from the DB T1.
But this results in that some records get duplicated. And one version has the columns "done" set at '0' and another at '1'. If I do again an update it adds another record with "done" at '0', etc...

How do I do an insert and also check that the new data is not already in the DB present?

Thx
Johny






Similar Threads
Thread Thread Starter Forum Replies Last Post
check whether COM object exists EddyT C# 0 June 15th, 2007 04:10 AM
check whether a particular session exists or not chayanvinayak PHP How-To 1 May 1st, 2006 04:09 PM
check first to see if the file exists crmpicco Classic ASP Professional 2 December 1st, 2005 12:34 PM
how to check that node is exists debuajm General .NET 0 June 8th, 2004 02:07 AM
How to check if connection already exists Ciarano VB How-To 3 March 9th, 2004 10:24 AM





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