ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 29th, 2000, 11:47 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
**Really stuck on this** please help - Duplicate data

<i><b>Originally posted by : GMan (gvyas2000@hotmail.com)</b></i><br />I receive the data into one of my tables on MS SQL Server from a text file which has some duplicate records. How do I delete them? For example, here is what my SQL table is with two fields and three records:<br />Field1; Field2<br />AB; DE<br />AB; DE<br />AB; 12<br /><br />So here 1 and 2 are duplicates but 3 is not since the Field2 is not the same. So basically all the fields value has to be same, not just one field. <br />I was thinking of writing some kind of SP to search those duplicates or a trigger, how to do that? <br /><br /><br /><br />

Reply With Quote
  #2  
Old March 31st, 2000, 09:16 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Dave B (david_baylor@yahoo.com)</b></i><br /><br />Just create an index on that table that includes all the fields and set it to "no dups"<br /><br />------------<br />GMan at 3/29/2000 9:47:56 AM<br /><br />I receive the data into one of my tables on MS SQL Server from a text file which has some duplicate records. How do I delete them? For example, here is what my SQL table is with two fields and three records:<br />Field1; Field2<br />AB; DE<br />AB; DE<br />AB; 12<br /><br />So here 1 and 2 are duplicates but 3 is not since the Field2 is not the same. So basically all the fields value has to be same, not just one field. <br />I was thinking of writing some kind of SP to search those duplicates or a trigger, how to do that? <br /><br /><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > **Really stuck on this** please help - Duplicate data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT