Skip to content

Commit dc6215a

Browse files
committed
minor grammar fix
1 parent 2056b74 commit dc6215a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/powershell/sql-server-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Query expressions are strings that use syntax similar to XPath to specify a set
7373
There's no change to the module used by SQL Server Agent. As such, SQL Server Agent jobs, which have PowerShell type job steps use the SQLPS module. For more information, see [How to run PowerShell with SQL Server Agent](run-windows-powershell-steps-in-sql-server-agent.md). However, starting with SQL Server 2019, you can disable SQLPS. To do so, on the first line of a job step of the type PowerShell you can add `#NOSQLPS`, which stops the SQL Agent from auto-loading the SQLPS module. When you do this, your SQL Agent Job runs the version of PowerShell installed on the machine, and then you can use any other PowerShell module you like.
7474

7575
### Troubleshooting SQLPS
76-
If you see agent job steps (PowerShell subsystem) failing with the following error, this section could be relevant/good troubleshooting.
76+
If you see agent job steps (PowerShell subsystem) failing with the following error, this section may be helpful in troubleshooting the issue.
7777

7878
> A job step received an error at line 1 in a PowerShell script. The corresponding line is 'import-module SQLPS'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'The specified module 'SQLPS' was not loaded because no valid module file was found in any module directory.
7979

0 commit comments

Comments
 (0)