Viewing 2 posts - 1 through 2 (of 2 total)
Well, coding a table maintenance job for 140 different servers which are from 2005 to 2019 version, with a reporting server or not, with sdt or not, it is very...
May 27, 2020 at 7:43 am
#3757629
Hi,
A small improvement to this script may be :
SELECT @InstanceName = convert(varchar, ISNULL(ServerProperty('InstanceName'),'MSSQLSERVER'))
(Since the return value may be null when default instance name is used)
May 20, 2020 at 8:06 am
#3753175