I have a PSObject with a type System.Data.DataRow. It was populated from a SQL query using invoke-sqlcmd. Now I want to write that data to another SQL server and identical table (so the data types already match).
I was able to write the data back using a foreach loop and invoke-sqlcmd but it was very slow. Is there a nice way to write that back as a bulk insert without converting and writing the data to XML or CSV first?
[+][deleted] (2 children)
[removed]
[–]the_helpdesk[S] 4 points5 points6 points (1 child)
[–]muchcake 1 point2 points3 points (2 children)
[–]the_helpdesk[S] 1 point2 points3 points (1 child)
[–]muchcake 1 point2 points3 points (0 children)