miguelleeuwe
Programmer
Hello,
using pb 11.5
sql server 2008
call a stored procedure from powerbuilder that does a BULK INSERT and everything goes fine. I can repeat the operation thousands of times and no problem.
The problem is when I quit the application and go back to execute exactly the same procedure, it fails, saying that the transaction can not be 'confirmed' and does not permit 'write' operations (traduced from spanish, sorry). And I should REVERT.
I've tried tons of stuff and the only diference y seem to find is - when monitoring the sql - there's a diference in the call. When it fails there seems to be a call to
"sp_procedure_params_rowset N'[name of my procedure]',1,N'dbo',NULL" which I don't see when its working fine. .....
the way to make my powerbuilder call work again, is to previously call the procedure straight from the "sql sever manager" tool.
¿any guesses?
I'm thinking it might have something to do with having to specify "BATCH-size" to my BULK INSERT ??? but why does it work 1000's of times untill I leave the application and get back in ....
Quite Desperate. this was a 16 hours workday, not counting the time I already spent at home..
Thanks in Advance
Miguel
regards,
Miguel L.
using pb 11.5
sql server 2008
call a stored procedure from powerbuilder that does a BULK INSERT and everything goes fine. I can repeat the operation thousands of times and no problem.
The problem is when I quit the application and go back to execute exactly the same procedure, it fails, saying that the transaction can not be 'confirmed' and does not permit 'write' operations (traduced from spanish, sorry). And I should REVERT.
I've tried tons of stuff and the only diference y seem to find is - when monitoring the sql - there's a diference in the call. When it fails there seems to be a call to
"sp_procedure_params_rowset N'[name of my procedure]',1,N'dbo',NULL" which I don't see when its working fine. .....
the way to make my powerbuilder call work again, is to previously call the procedure straight from the "sql sever manager" tool.
¿any guesses?
I'm thinking it might have something to do with having to specify "BATCH-size" to my BULK INSERT ??? but why does it work 1000's of times untill I leave the application and get back in ....
Quite Desperate. this was a 16 hours workday, not counting the time I already spent at home..
Thanks in Advance
Miguel
regards,
Miguel L.