rh71
No Lifer
EDIT>> resolved below.
I'm using a vb script to pull data from an MS SQL Server db. The script contains a main SQL statement that is currently supposed to pull back 1800 records in total. Then in a loop, for each record it pulls back, it runs other SQL against it to check various things, then writes the row to a different table (for me to operate on later).
Where I'm seeing the trouble is that everytime I run the script, it seems to stop after the 388th, 389th, 390th row, randomly. There is no SELECT TOP ___ " in the statement at all. I tried changing the main SQL statement to have it pull data back in different order, and it still fails on the 388-390th row it tries to write, so it doesn't appear to be a data issue. To describe it in more detail, it could run VERY fast getting to the 387th row, then stall 15 seconds, then be able to write that row - then it tries the next one and after another 15 seconds it errors.
The error returned is "SQL Server does not exist or access denied” and it points to lines where I execute the SQL checks (and at different lines of execution randomly). I have also seen it simply say timeout on a couple occassions. I found this article on that error: http://support.microsoft.com/kb/328306 but it's like finding a needle in a haystack with all the various causes.
Has anyone ever come across such an issue where it's allowing only a certain number of db reads/writes and it may apply here? I find it odd that it's tripping up right at that point nearly every time regardless of the data it's seeing. I suspected a network issue but I even ran it locally on the server and the same thing results. BTW, I say "nearly" every time because one time it pulled back and wrote all 1800 rows - just once in 2 days of testing though, with the same code.
This similar code structure ran fine against another server and its db so perhaps it's a setting somewhere someone knows about?
I'm using a vb script to pull data from an MS SQL Server db. The script contains a main SQL statement that is currently supposed to pull back 1800 records in total. Then in a loop, for each record it pulls back, it runs other SQL against it to check various things, then writes the row to a different table (for me to operate on later).
Where I'm seeing the trouble is that everytime I run the script, it seems to stop after the 388th, 389th, 390th row, randomly. There is no SELECT TOP ___ " in the statement at all. I tried changing the main SQL statement to have it pull data back in different order, and it still fails on the 388-390th row it tries to write, so it doesn't appear to be a data issue. To describe it in more detail, it could run VERY fast getting to the 387th row, then stall 15 seconds, then be able to write that row - then it tries the next one and after another 15 seconds it errors.
The error returned is "SQL Server does not exist or access denied” and it points to lines where I execute the SQL checks (and at different lines of execution randomly). I have also seen it simply say timeout on a couple occassions. I found this article on that error: http://support.microsoft.com/kb/328306 but it's like finding a needle in a haystack with all the various causes.
Has anyone ever come across such an issue where it's allowing only a certain number of db reads/writes and it may apply here? I find it odd that it's tripping up right at that point nearly every time regardless of the data it's seeing. I suspected a network issue but I even ran it locally on the server and the same thing results. BTW, I say "nearly" every time because one time it pulled back and wrote all 1800 rows - just once in 2 days of testing though, with the same code.
This similar code structure ran fine against another server and its db so perhaps it's a setting somewhere someone knows about?
Last edited: