Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Set-based Insert from PoSh to SQL table

$
0
0
Hi all,I've been trying to find a way to do set-based inserts into a SQL Server.As near as I can tell, there are only 2 ways:1) convert the data to be inserted to XML, pass that SQL Server, either a sproc or a file;2) export to file and BULK INSERT in SQL Server.Neither of these are especially appealing.Is there not something equivalent to $Table.Insert($NewData)Save-IntoSQLTable appears to be on the right track, but also seems to want only to work with traces.Any ideas?

Viewing all articles
Browse latest Browse all 467

Trending Articles