Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

SqlServer PS module and SQLPS Clarification

$
0
0

I understand that SqlServer has replaced SQLPS.  I experienced this with SQL 2017.  I'm now putting together a SQL 2019 with Server 2019 and I see that SQLPS is still part of the install.

PS C:\Windows\system32> get-module sqlps -ListAvailable

Directory: C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules

ModuleType Version Name ExportedCommands

---------- ------- ---- ----------------

Manifest 15.0 SQLPS {Backup-SqlDatabase, Save-SqlMigrationReport, Invoke-Polic...

Before I do an install of SqlServer module, is it advised to uninstall SQLPS first?  I did try to install SqlServer without trying to remove SQLPS and I'm then presented with all sorts of red text

PackageManagement\Install-Package : The following commands are already available on this system:'Add-SqlAvailabilityDatabase,Add-SqlAvailabilityGroupListenerStaticIp,Add-SqlFirewallRule,Backup-SqlDatabase,blah blah blah....'. This module 'SqlServer' may override the existing commands. If you still want to install this module 'SqlServer', use -AllowClobber parameter.

Should one just -AllowClobber?  When I do that, both SQLPS and SqlServer appear to be installed.

Please advise and thanks!


Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>