Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » System Procedures » System procedures

sp_remote_imported_keys system procedure Next Page

sp_remote_primary_keys system procedure


Provides primary key information about remote tables using remote data access.

Syntax

sp_remote_primary_keys(
@server_name
[, @table_name
[, @table_owner
[, @table_qualifier ] ] ]
)

Arguments
Result set
Column nameData typeDescription
database CHAR(128)The name of the remote database.
ownerCHAR(128)The owner of the remote table.
table-nameCHAR(128)The remote table.
column-nameCHAR(128)The column name.
key-seqSMALLINTThe primary key sequence number.
pk-nameCHAR(128)The primary key name.
Remarks

This system procedure provides primary key information about remote tables using remote data access.

Because of differences in the underlying ODBC/JDBC calls, the information returned differs slightly in terms of the catalog/database value depending upon the remote data access class that is specified for the server. However, the important information (for example, column name) is as expected.

Standards and compatibility

Sybase    Supported by Open Client/Open Server.

Permissions

None

Side effects

None