I think I am getting closer to the cause of it. I upgraded the DB and then
ran the sql (select * from table where device_id = '1966' ). I then
modified the table using management studio (I added a column ID as a primary
key with identity set to true and I begin having this problem.
> Ok thanks.
>
[quoted text clipped - 40 lines]
>>>>>>>
>>>>>>> What am I doing wrong? Can anyone help?
Do you still have the problem if you do a Repair/Compact on the database? I
don't know why adding a column should cause your select statement to begin
failing unless the database has become corrupted. Do you get any error
message, or does it just not return any rows?

Signature
Ginny Caughey
Device Application Development MVP
>I think I am getting closer to the cause of it. I upgraded the DB and then
>ran the sql (select * from table where device_id = '1966' ). I then
[quoted text clipped - 45 lines]
>>>>>>>>
>>>>>>>> What am I doing wrong? Can anyone help?
Mike Bevins - 19 Sep 2007 13:53 GMT
I will have to compacting / repairing it to see if that helps. Also, no, I
do not get any errors, it just returns nothing.
> Do you still have the problem if you do a Repair/Compact on the database?
> I don't know why adding a column should cause your select statement to
[quoted text clipped - 50 lines]
>>>>>>>>>
>>>>>>>>> What am I doing wrong? Can anyone help?
Mike Bevins - 19 Sep 2007 14:18 GMT
Okay, I just compacted / repaired the DB and that did not help.
> Do you still have the problem if you do a Repair/Compact on the database?
> I don't know why adding a column should cause your select statement to
[quoted text clipped - 50 lines]
>>>>>>>>>
>>>>>>>>> What am I doing wrong? Can anyone help?
Ginny Caughey [MVP] - 19 Sep 2007 16:02 GMT
Ok, here's another question: can you reproduce the same behavior in a new
database?

Signature
Ginny Caughey
Device Application Development MVP
> Okay, I just compacted / repaired the DB and that did not help.
>
[quoted text clipped - 52 lines]
>>>>>>>>>>
>>>>>>>>>> What am I doing wrong? Can anyone help?
Mike Bevins - 19 Sep 2007 17:14 GMT
No, it only appears to start happening after I modify it with the management
studio.
> Ok, here's another question: can you reproduce the same behavior in a new
> database?
[quoted text clipped - 55 lines]
>>>>>>>>>>>
>>>>>>>>>>> What am I doing wrong? Can anyone help?
Ginny Caughey [MVP] - 19 Sep 2007 19:07 GMT
Ok, thanks, Mike.

Signature
Ginny Caughey
Device Application Development MVP
> No, it only appears to start happening after I modify it with the
> management studio.
[quoted text clipped - 62 lines]
>>>>>>>>>>>>
>>>>>>>>>>>> What am I doing wrong? Can anyone help?