@Christopher Jack The following stackoverflow post should help you pass parameters and fill a SqlDataAdapter.
https://stackoverflow.com/questions/15340496/pass-parameters-from-powershell-to-stored-procedure
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have the following code.
$SqlCmd.CommandText = $("EXEC [ZoomFS].[ReboundHeader] @SalesDocNum = $comps[i] ");
The error I am receiving is
Exception calling "Fill" with "1" argument(s): "Could not find stored procedure ''."ps1:55 char:1
- $SqlAdapter.Fill($DataSet);
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : SqlException
I dont think the syntax is correct.
Any help appreciated.
@Christopher Jack The following stackoverflow post should help you pass parameters and fill a SqlDataAdapter.
https://stackoverflow.com/questions/15340496/pass-parameters-from-powershell-to-stored-procedure
Hi,
Powershell scripts for specific products, such as SQL or Exchange, are out of the scope of WS PS support. Appreciate your understanding.
Thanks for your time!
Best Regards,
Mico Mi
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.