Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running the same query repeatedly garnishes different results

Status
Not open for further replies.

jojo11

Programmer
Feb 2, 2003
189
US
We are working on an application where when you run the sql script in query analyzer a bunch of times it will be the same. However when you open up a new connection (new query) you lose or gain one or two records.

They are just copying and pasting the entire script into the new window when it happens.

I'm just looking for ideas as to what may be causing this....

-------------------------------------------
Ummm, we have a bit of a problem here....
 
Without more detail it would be hard to answer the question. Several possibilities occur to me, one the data has changed over time, two the person running the code is restricted from seeing all the data for some reason, three the person is running the code on a different server and the records are not in synch, four, they are missing the last part of the where clause in the copy and paste.

"NOTHING is more important in a database than integrity." ESquared
 
>> three the person is running the code on a different server and the records are not in synch

3a. They could be connected to the same server, but a different database.

-George

"the screen with the little boxes in the window." - Moron
 
Btw... if you are interested, see garner (vs. garnish). And consider yield as an alternative. Not related to SQL but simply in case you wanted to know.

[COLOR=black #d0d0d0]My alarm clock causes time travel. When I hit snooze, no apparent time passes before the alarm sounds again, but the universe has in fact moved forward through time by ten minutes![/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top