Using PowerShell insert string values in SQL Server DB.

Question:

I have a long list of values that need to be inserted in a single column SQL server table. I use the following code. However, it takes a long time. Is there an easier way to achieve this?

Answer:

Try this, it will ride on a single connection so you will avoid the expensive overhead as per @vonPryz:

Source:

Using PowerShell insert string values in SQL Server DB. by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply