Hi!
PB2019 2353 (32 bit)
MSSQL 2012 and MSSQL 2017 (natív client 11.0)
Windows 10 64 bit
We have several long running MSSQL stored procedures with brief insert expression in begin, after a slow select to collect the results, and write results to the tables at the end. How to use these without start a transaction automatically.
I would like handling transactions in the stored procedure, because the long running queries are lock the database, it I run all stored procedure in the transaction.
Regards,
Géza
Good tip!
The thing is, when I started to work for that company their existing apps already had this with nolock everywhere in their code. So when writing a new select, it wasn't that much work either to add these few words and never stopped to think about a better way of doing it. (plus you would have to check on all overrides everywhere to make sure your dynamic change would be applied).
regards.