Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.91 KB

File metadata and controls

28 lines (22 loc) · 1.91 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords apitype
SQLForeignKeys
SQLForeignKeys
markingmyname
maghan
03/14/2017
sql
native-client
reference
SQLForeignKeys function
DLLExport

SQLForeignKeys

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

[!INCLUDEssNoVersion] supports cascading updates and deletes through the foreign key constraint mechanism. [!INCLUDEssNoVersion] returns SQL_CASCADE for UPDATE_RULE and/or DELETE_RULE columns if CASCADE option is specified on the ON UPDATE and/or ON DELETE clause of the FOREIGN KEY constraints. [!INCLUDEssNoVersion] returns SQL_NO_ACTION for UPDATE_RULE and/or DELETE_RULE columns if NO ACTION option is specified on the ON UPDATE and/or ON DELETE clause of the FOREIGN KEY constraints.

When invalid values are present in any SQLForeignKeys parameter, SQLForeignKeys returns SQL_SUCCESS on execution. SQLFetch returns SQL_NO_DATA when invalid values are used in these parameters.

SQLForeignKeys can be executed on a static server cursor. An attempt to execute SQLForeignKeys on an updatable (dynamic or keyset) cursor returns SQL_SUCCESS_WITH_INFO indicating that the cursor type has been changed.

The [!INCLUDEssNoVersion] Native Client ODBC driver supports reporting information for tables on linked servers by accepting a two-part name for the FKCatalogName and PKCatalogName parameters: Linked_Server_Name.Catalog_Name.

See Also

SQLForeignKeys Function
ODBC API Implementation Details