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
,Priority = '+CAST(@Priority ASNVARCHAR(MAX)) + N'
2050
+
,Schema_Id = S.schema_id
2051
+
,SchemaName = S.name
2052
+
,Object_Id = O.object_id
2053
+
,ObjectName = O.name + ''.'' + C.Name
2054
+
,ObjectType = ''COLUMN''
2055
+
,Details = N''Column ''+ C.Name + N'' uses the '' + UPPER(t.name) +N'' data type, which has limited precision and can lead to roundoff errors. Consider using Decimal(19.4) instead.''
2056
+
FROM
2057
+
'+QUOTENAME(@DatabaseName) + N'.sys.objects AS O
2058
+
INNER JOIN '+QUOTENAME(@DatabaseName) + N'.sys.schemas AS S ON S.schema_id = O.schema_id
2059
+
INNER JOIN '+QUOTENAME(@DatabaseName) + N'.sys.columns AS C ON C.object_id = O.object_id
2060
+
INNER JOIN '+QUOTENAME(@DatabaseName) + N'.sys.types AS T on T.user_type_id = C.user_type_id
2061
+
WHERE
2062
+
t.name IN (''money'', ''smallmoney'');';
2027
2063
2064
+
EXECsys.sp_executesql @stmt = @StringToExecute;
2065
+
IF @Debug =2AND @StringToExecute ISNOTNULLPRINT @StringToExecute;
0 commit comments