I have created windows service for data-insertion.Time interval is one min.After one min, data insert into table.Data get inserted into table at multiple time.I don’t want to that,only one time.How to do that?May I need to check in database wether entry is there or nor if not add.
I have created windows service for data-insertion.Time interval is one min.After one min, data
Share
You can use this query before inserting the data.
— here, after the check, do the INSERT
You might also want to create a UNIQUE INDEX on your Name column to make sure no two rows with the same value exist:
Hope this help you.