Hello,
I have a problem that the order that I write to the database is not the same order when I look at the database in SQL Server Management Studio. It looks like:
ID Time Date Larm
3 21:29:42 2011-02-13 Larm3
5 21:29:59 2011-02-13 Larm5
7 21:30:07 2011-02-13 Larm7
9 21:30:09 2011-02-13 Larm9
1 21:29:41 2011-02-13 Larm1
2 21:29:41 2011-02-13 Larm2
4 21:29:43 2011-02-13 Larm4
6 21:30:07 2011-02-13 Larm6
8 21:30:08 2011-02-13 Larm8
I write in the to the database in ID order så I would expect:
ID
1
2
etc
I loop when I write to the database, are there a possibility that the previous "objCommandEvent.Execute" is not finnished ? If how do I wait unitil finnished ?
I use Microsoft SQL Server 2008
Please help!! Gustaf
I have a problem that the order that I write to the database is not the same order when I look at the database in SQL Server Management Studio. It looks like:
ID Time Date Larm
3 21:29:42 2011-02-13 Larm3
5 21:29:59 2011-02-13 Larm5
7 21:30:07 2011-02-13 Larm7
9 21:30:09 2011-02-13 Larm9
1 21:29:41 2011-02-13 Larm1
2 21:29:41 2011-02-13 Larm2
4 21:29:43 2011-02-13 Larm4
6 21:30:07 2011-02-13 Larm6
8 21:30:08 2011-02-13 Larm8
I write in the to the database in ID order så I would expect:
ID
1
2
etc
I loop when I write to the database, are there a possibility that the previous "objCommandEvent.Execute" is not finnished ? If how do I wait unitil finnished ?
I use Microsoft SQL Server 2008
Please help!! Gustaf