2
I got a problem, I got a problem script php that reads large XML files.
Before I start inserting this data I make a Begin transaction and in the end the commit, but throughout the process that can take up to 20 minutes my database is unusable, both for those who are importing (so far ok) and for other computers that has nothing to do with the table that is being populated, you can give me a light?
Which database is it? you give some lock manually?
– rray
I am using sql server 2008. I do not use any lock, all settings are default installation on sql server
– Bruno Cerquiare
Put the code on for us to check it out!
– Wallace Maxters
Could put part of php and sql code.
– rray
Hm, I’m using the Adodb class for PHP with the mssqlnative driver. The call it executes is for the "sqlsrv_begin_transaction" function and after that I do the Insert normally and then the commit. In the middle of this transaction I’m running some selects, you think the tables I run select inside the trans are being blocked ?
– Bruno Cerquiare
When you call sqlsrv_begin_transaction you do not pass any parameter? What if for each select you select within this transaction you do within a new transaction? Have you tried this?
– Renatto Machado