Link to home
Start Free TrialLog in
Avatar of mattphung
mattphung

asked on

Does uploading a 1MB file into SQL 2005 locks the table?

Does uploading a 1MB file into SQL 2005 locks the table and block others from uploading to the same table? Does it block queries against that table?
Avatar of Daniel Wilson
Daniel Wilson
Flag of United States of America image

It should not block other inserts.  Now if your upload is more complicated & does some comparison to what's already there, the could block.

Depending on the criteria your SELECT uses, it could block while you insert the data.
Avatar of mattphung
mattphung

ASKER

So for example, if I'm uploading an email attachment and another user logs into the email system and trys to download an attachment from the same table by using this statement:

Select * from Attachment (nolock) where AttachmentId = @Id

Does the statement above execute without waiting for the upload to complete? Thanks
ASKER CERTIFIED SOLUTION
Avatar of Daniel Wilson
Daniel Wilson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial