Click here to Skip to main content
15,888,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hiii

i need help for clearing the rows in sql data table. My database needs to refresh after sometime and this is causing the doublets in the data.

so i need to clear the datatable every time it refreshes.
Posted

1 solution

It looks like your database it incorrectly designed. If you don't want to re-design that, you can think about the query which adds doublets in first place instead of cleaning it some time after. What you doing right now looks like violation of ACID rules, see http://en.wikipedia.org/wiki/Database#The_ACID_rules[^].

—SA
 
Share this answer
 
Comments
surajking123 10-Mar-11 0:20am    
kk thanks..

please help me how to do this..
my database adds from an object which is refreshed every 5 min. so how can i redesign my database in order to stop this doublets and triplets
Sergey Alexandrovich Kryukov 10-Mar-11 0:36am    
How can I know that not having your meta-data and requirements? Can be a big work...
--SA
sairam.bhat 10-Mar-11 0:47am    
good answer sir
Sergey Alexandrovich Kryukov 10-Mar-11 0:49am    
Thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900