Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-05-02 : 07:28:18
|
Ron Darrell writes "Hi I have a table with a unique autokey. An email with an excel attachment arrives each day and using a programme I grab the data and add it to the table. The problem is that this can be done again and again so I keep adding the data even though it's useless. I need to check for duplicates based on a date field. How do I do this withoput checking the whole database 100,000 records and growing?" |
|
JimL
SQL Slinging Yak Ranger
1537 Posts |
Posted - 2005-05-02 : 07:49:01
|
An ounce of prevention.TAke the "excel" attachment and dump it it into a temp DB then test against The existing table and drop the dupe before appending it.JimUsers <> Logic |
 |
|
|
|
|