[英]Sql output in powershell script
如何使用Invoke-AdoCommand在powershell脚本中获取sql输出。
$ds = Invoke-AdoCommand -ProviderName System.Data.SQLClient -ConnectionString $connection -CommandText $query -AsDataSet
I think Google is going to you your best friend here - I just searched "Powershell DataSet" - this link was among the results: 我认为Google会在这里向你发送你最好的朋友 - 我刚刚搜索过“Powershell DataSet” - 这个链接属于以下结果:
How to loop through a dataset in powershell? 如何遍历powershell中的数据集?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.