$database = "Chinook" $schema = "dbo" $table = "Album" $filename = "C:\Temp\results.txt" $bcp = "bcp $($database).$($schema).$($table) out $filename -T -c" Invoke-Expression $bcp
thanks, the Invoke-Expression worked better than my previous method.
thanks, the Invoke-Expression worked better than my previous method.
ReplyDelete