Click here to Skip to main content
Sign Up to vote bad
good
See more: SQL-Server
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 18 Nov '12 - 20:21
danil33399


2 solutions

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.
  Permalink  
Try to use transaction isolation levels
http://msdn.microsoft.com/en-us/library/ms173763.aspx[^]
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 373
1 OriginalGriff 335
2 Arun Vasu 315
3 Maciej Los 218
4 Aarti Meswania 180
0 Sergey Alexandrovich Kryukov 9,680
1 OriginalGriff 7,539
2 CPallini 4,018
3 Rohan Leuva 3,362
4 Maciej Los 2,951


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid