Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old December 22nd, 2003, 11:58 AM
Authorized User
Join Date: Aug 2003
Location: , , .
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deleting SQL Blank Records

I'm having some trouble with my SQL database. It seems that there were 2 entries that were left blank and duplicates, but SQL Manager will not allow me to delete them. I get the error "Key column information is insufficient or incorrect. Too many rows were affected by update." I find this odd, because it is the only table I'm using in this database as of yet. The main problem is, I can't get rid of them short of completely rebuilding the database. Any help is appreciated.

  #2 (permalink)  
Old December 22nd, 2003, 03:17 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Connect to your database with SQL query analyzer and you can manually delete all records that have the blanks. The query builder in the manager requires unique identification of rows to operate but you should be able to do a bulk delete of the problem rows with a single query.

Work smarter, not harder.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Duplicate Records BrianWren Pro VB Databases 1 February 22nd, 2008 01:30 PM
Deleting all the records in a table suthaharmca Beginning VB 6 4 January 2nd, 2008 06:14 PM
Deleting duplicate records ninel SQL Server 2000 3 June 14th, 2006 02:12 PM
Deleting Records Within Relational Tables rit01 SQL Server 2000 5 May 11th, 2006 03:11 AM
Automatically Finding and Deleting Blank rows Romulus Excel VBA 3 October 18th, 2003 09:04 PM

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