SQLDIALECT function [Miscellaneous]

Returns either Watcom-SQL or Transact-SQL, to indicate the SQL dialect of a statement.

Syntax
SQLDIALECT( sql-statement-string )
Parameters
  • sql-statement-string   The SQL statement that the function uses to determine its dialect.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the string Transact-SQL.

SELECT
   SQLDIALECT( 'SELECT EmployeeName = Surname FROM Employees' )
FROM dummy;