Catalog stored procedures

These are the syntax and very brief descriptions for Adaptive Server catalog stored procedures. See Reference Manual: Procedures for complete information.

sp_column_privileges

Returns permissions information for one or more columns in a table or view.

sp_column_privileges table_name [, table_owner
	[, table_qualifier [, column_name]]]

sp_columns

Returns information about the type of data that can be stored in one or more columns.

sp_columns table_name [, table_owner ]
	[, table_qualifier] [, column_name]

sp_databases

Returns a list of databases in Adaptive Server.

sp_databases

sp_datatype_info

Returns information about a particular ODBC datatype or about all ODBC datatypes.

sp_datatype_info [data_type]

sp_fkeys

Returns information about foreign key constraints created with the create table or alter table command in the current database.

sp_fkeys pktable_name [, pktable_owner]
	[, pktable_qualifier] [, fktable_name] 
	[, fktable_owner] [, fktable_qualifier]

sp_pkeys

Returns information about primary key constraints created with the create table or alter table command for a single table.

sp_pkeys table_name [, table_owner] 
	[, table_qualifier]

sp_server_info

Returns a list of Adaptive Server attribute names and current values.

sp_server_info [attribute_id]

sp_special_columns

Returns the optimal set of columns that uniquely identify a row in a table or view; can also return a list of timestamp columns, whose values are automatically generated when any value in the row is updated by a transaction.

sp_special_columns table_name [, table_owner] 
	[, table_qualifier] [, col_type]

sp_sproc_columns

Returns information about a stored procedure’s input and return parameters.

sp_sproc_columns procedure_name [, procedure_owner] 
	[, procedure_qualifier] [, column_name]

sp_statistics

Returns a list of indexes on a single table.

sp_statistics table_name [, table_owner] 
	[, table_qualifier] [, index_name] [, is_unique]

sp_stored_procedures

Returns information about one or more stored procedures.

sp_stored_procedures [sp_name [, sp_owner [, sp_qualifier]]]

sp_table_privileges

Returns privilege information for all columns in a table or view.

sp_table_privileges table_name [, table_owner[, table_qualifier]]

sp_tables

Returns a list of objects that can appear in a from clause.

sp_tables [table_name] [, table_owner][, table_qualifier][, table_type]