You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SQLVersion AS tinyint = (@@microsoftversion / 0x1000000) & 0xff, -- Stores the SQL Server Version Number(8(2000),9(2005),10(2008 & 2008R2),11(2012),12(2014),13(2016),14(2017)
104
+
@ServerName AS sysname =CONVERT(sysname, SERVERPROPERTY('ServerName')); -- Stores the SQL Server Instance name.
102
105
103
-
DECLARE @SQLVersion AS tinyint = (@@microsoftversion / 0x1000000) & 0xff -- Stores the SQL Server Version Number(8(2000),9(2005),10(2008 & 2008R2),11(2012),12(2014),13(2016),14(2017))
104
-
DECLARE @ServerName AS sysname =CONVERT(sysname, SERVERPROPERTY('ServerName')) -- Stores the SQL Server Instance name.
105
-
106
-
CREATE TABLE #ineachdb(id int, name nvarchar(512));
106
+
CREATE TABLE #ineachdb(id int, name nvarchar(512), is_distributor bit);
107
107
108
108
IF @database_list > N''
109
109
-- comma-separated list of potentially valid/invalid/quoted/unquoted names
0 commit comments