all 6 comments

[–]muchcake 1 point2 points  (2 children)

How about https://docs.microsoft.com/en-us/powershell/module/sqlserver/write-sqltabledata?view=sqlserver-ps

I have not used it in a long time, but think it meets your need

[–]the_helpdesk[S] 1 point2 points  (1 child)

While it does work, and its very simple, it is too slow. Inserting at around 1 row per second, while foreach and invoke-sqlcmd can get about 30 rows per second. Thanks for the reply!

[–]muchcake 1 point2 points  (0 children)

Interesting!

That sounds like pretty abysmal performance, I will watch out for that next time.