SSC-FDM-TS0010

CURRENT_DATABASE function has different behavior in certain cases.

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Description

This EWI is added when the function DB_NAME is transformed to CURRENT_DATABASE because Snowflake does not support the database_id parameter and the CURRENT_DATABASE function will always return the current database name.

Code Example

Input Code:

IN -> SqlServer_01.sql
SELECT DB_NAME(someId);

Output Code:

OUT -> SqlServer_01.sql
SELECT
CURRENT_DATABASE() /*** SSC-FDM-TS0010 - CURRENT_DATABASE function has different behavior in certain cases ***/;

Recommendations

  • No additional user actions are required.

  • If you need more support, you can email us at [email protected]

Last updated