Greetings,
When auto deploying (via powershell) what would be the best option to specify passwords and specific server names based on environment vars or Maybe prompt the person deploying it?
EXEC master.dbo.sp_addlinkedserver @server = N'BISERVER',
@srvproduct=N'', @provider=N'SQLNCLI', @datasrc='PLEASE_PROVIDE_BISERVER'
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'BISERVER',@useself=N'False',
@locallogin=NULL,
@rmtuser=N'PLEASE_PROVIDE_USER',@rmtpassword='PLEASE_PROVIDE_PASSWORD'
GO