USE
Transact SQL USE statement Snowflake equivalence.
The USE statement has its own equivalent in Snowflake. The statement will be translated to the USE DATABASE statement in snowflake.
Translation Examples
Source
IN -> SqlServer_01.sql
Output
OUT -> SqlServer_01.sql
Database name
The database name
specified in the USE
statement, could have a change if it comes inside Square Brackets ([ ])
. The first bracket and the last bracket will be replaced with quotes. Example:
Source
Output
User Defined Database
If a user specifies to the Conversion Tool a custom database name to be applied to all the objects by using the -d
parameter, and wants the USE statements to be transformed, the Database name should be applied just to the USE
statement and not to the objects. This will override the specified database from the use statement. Example:
Source
IN -> SqlServer_02.sql
Output
OUT -> SqlServer_02.sql
Last updated