microsoft / SQLServerPSModule

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

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

Open Adam-S-Daniel opened 5 months ago

Adam-S-Daniel commented 5 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 5 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 hours ago

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