TerraSamba
Programmer
Hi guys,
I'm kinda stuck with this problem:
I want to implement a real time data solution with SQL Server 2000 and VB6, by using ADO 2.7 objects. I've come a long way allready. Tables, classes, stored procedures etc are all ready. But I am struggeling a bit with my data refreshes on screen.
Perfect would be if the data provider would push the added records etc to my recordset automaticly. But this is utopia, because cursorlocation: server and cursortype: dynamic returns a recordcount of -1, this problem has existed since 1998, with ADO 1.5 and has not been solved ever since ... Any other type of cursor will not detect newly added records ... so to me there seems to be only one solution:
Adding a lastupdate field to every table and ansynchronously with a timer look if something has changed since we last loaded data from this table, and implement the changes to my local recordset.
I am not to keen on my solution, it will work, but I wonder if if anyone has a better solution for me, that requires someshat less work/overhead.
Thankx 4 replies,
Terra
I'm kinda stuck with this problem:
I want to implement a real time data solution with SQL Server 2000 and VB6, by using ADO 2.7 objects. I've come a long way allready. Tables, classes, stored procedures etc are all ready. But I am struggeling a bit with my data refreshes on screen.
Perfect would be if the data provider would push the added records etc to my recordset automaticly. But this is utopia, because cursorlocation: server and cursortype: dynamic returns a recordcount of -1, this problem has existed since 1998, with ADO 1.5 and has not been solved ever since ... Any other type of cursor will not detect newly added records ... so to me there seems to be only one solution:
Adding a lastupdate field to every table and ansynchronously with a timer look if something has changed since we last loaded data from this table, and implement the changes to my local recordset.
I am not to keen on my solution, it will work, but I wonder if if anyone has a better solution for me, that requires someshat less work/overhead.
Thankx 4 replies,
Terra