Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk Insert row lock not supported #1630

Open
aburht opened this issue Apr 4, 2024 · 1 comment
Open

Bulk Insert row lock not supported #1630

aburht opened this issue Apr 4, 2024 · 1 comment

Comments

@aburht
Copy link

aburht commented Apr 4, 2024

Bulk insert operations are not supporting row level locks, I don't see options in IbulkOptions, As a results transactions are experiencing delays and potential deadlocks

Expected behaviour:

Bulk insert operations should support row level locks

Software versions

  • NodeJS:
  • node-mssql:
  • SQL Server:
@dhensby
Copy link
Collaborator

dhensby commented Apr 5, 2024

I believe this is a feature request to add a lock configuration during bulk insert operations, is that correct?

Locking seems to be managed via dedicated options (https://learn.microsoft.com/en-us/sql/t-sql/statements/bulk-insert-transact-sql?view=sql-server-ver16#tablock), I'm not clear on how you would specify a row level lock.

Do you have a suggestion for how to implement this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants