mithrandyr / SimplySql

PowerShell module for querying various SQL databases
MIT License
202 stars 30 forks source link

MSSQL Bulk Copy with existing transaction fails #37

Closed mithrandyr closed 9 months ago

mithrandyr commented 3 years ago

If there is an existing transaction (with the MSSQL provider) and invoke-sqlbulkcopy is used, an error is thrown because the bulkcopy class is not expecting this.

Suggestion: modify the code to check for an existing transaction and use it if it exists.

mithrandyr commented 9 months ago

Version 2.0 released!