sp_columns  sp_datatype_info

Chapter 2: Catalog Stored Procedures

sp_databases

Description

Returns a list of databases in Adaptive Server.

Syntax

sp_databases

Parameters

None.

Examples

Example 1

sp_databases
database_name       database_size    remarks
----------------    -------------    ------------
master                 5120          NULL
model                  2048          NULL
mydb                   2048          NULL
pubs2                  2048          NULL
sybsecurity            5120          NULL
sybsystemprocs        16384          NULL
tempdb                 2048          NULL

Usage

Permissions

Any user can execute sp_databases.





Copyright © 2005. Sybase Inc. All rights reserved. sp_datatype_info

View this book as PDF