Links

MSCEWI4046

System table is not supported in Snowflake.

Severity

Medium

Description

This EWI is added when referencing SQL Server system tables not supported or whithout equivalent in Snowflake SQL. Click here to see the complete list of supported and not supported system tables.

Code Example

Input Code:

SELECT *
FROM
sys.all_sql_modules
WHERE
[STATE] = 0; -- state must be ONLINE

Output Code:

SELECT *
FROM
-- ** MSC-ERROR - MSCEWI4046 - SYSTEM TABLE sys.all_sql_modules IS NOT SUPPORTED IN SNOWFLAKE **
-- sys.all_sql_modules
WHERE STATE = 0; -- state must be ONLINE

Recommendations