I am trying to enable my sql server express to listen with TCP/IP.
The issue I am having is that when I run the below command on my local dev machine and then on the UAT server, I get different results.
# Enable TCP/IP
$smo = 'Microsoft.SqlServer.Management.Smo.'
$wmi = new-object ($smo + 'Wmi.ManagedComputer')
# List the object properties, including the instance names.
$Wmi
Here are my results:
Dev -
UAT Server -
I can't enable TCP/IP for the SQL server on UAT because the WMI object does not contain the instance of SQL Server running on it?
Does anyone have an idea why this?
question from:
https://stackoverflow.com/questions/65833658/enable-sql-server-express-to-listen-with-tcp-ip 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…