Click here to Skip to main content
15,886,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Iam stuck with my work due to this problem.I searched in the net and very hard to find a solution.The problem is,I have a table in my database which is getting filled with data in every 5 seconds.I need to write a stored procedure to take data every 5 sec and doing some calculations.Iam unable to fetch continuously changing(continuously getting filled)) datas from my table.Is anybody have any idea about doing that?
Posted

Try to use transaction isolation levels
http://msdn.microsoft.com/en-us/library/ms173763.aspx[^]
 
Share this answer
 
Stored Procedure can execute set of queries and/or return result to caller. It can't run repeatedly.
But you can call SP from application side after some interval using timercontrol or like this.
Be careful, it will slow down your application if you fetch data frequently (depending on data volume).
It will be better store modification datetime on table and fetch data depending on that field, it will decrease traffic and faster your application.
 
Share this answer
 

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