microsoft / SQLServerPSModule

This repo is the home of SQL Server PowerShell Module development.
MIT License
51 stars 1 forks source link

Invoke-Sqlcmd documentation incorrectly says -InputFile parameter disallows spaces #71

Closed Adam-S-Daniel closed 4 months ago

Adam-S-Daniel commented 10 months ago

The -InputFile parameter information in the Invoke-Sqlcmd documentation states "Spaces are not allowed in the file path or file name". However, Invoke-SqlCmd executes successfully when the -InputFile parameter is used with a path and a file name that both contain spaces (e.g.: Invoke-SqlCmd -InputFile 'C:\[path containing spaces]\New Text Document.sql' [...]), at least in the following environment.

Client:

Server:

Matteo-T commented 10 months ago

Hi @Adam-S-Daniel - thanks for bringing it to my attention. I'll look into it and possibly fix as soon as possible.

Matteo-T commented 4 months ago

I'll try to look into this one while I published the documentation for v22.3.0...

Matteo-T commented 4 months ago

I've removed that part. Thanks. I have a PR out to update the documentation... I expect to go live as soon as it is approved. Maybe Monday. The offline documetation will pick up this change in the next release (v22.3.1+)