Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dupes
Message
From
01/10/2001 10:42:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Dupes
Miscellaneous
Thread ID:
00562526
Message ID:
00562538
Views:
20
>Hi All:
> I have duplicate records in one table that is part of Sql Server. How can I delete all the duplicate records in the table and preventing this from happening again in the future ?
>Thanks
Mahmood,
Strategy varies according to how you define a duplicate (a key field, a few fields combination, the whole record etc). On SQL server side you could add check constraints to prevent it (typically a candidate key for a combination of fields). Each added constraint would impact on performance so maybe it's a good idea to check 'before' sending to server.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform