Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to Sybase-Need help with Indexes

Status
Not open for further replies.

friday

Programmer
May 15, 2001
1
CA
Hi,

I'm a Siebel consultant, and am unfamiliar with Sybase. However, Siebel mobile clients have a Sybase database stored locally on their laptops. I need help with basic Sybase SQL syntax, like how to query Sybase for a list of existing tables, general table information (like
"DESCRIBE"), how to query for existing indexes (without knowing their names), and how to drop those indexes when found.
Any help is most appreciated.
Thanks
Friday
 
Hiya,

The easier way to look for an object in a database is

SELECT * FROM sysobjects.

For an index, you need SELECT * FROM sysindexes.

The Sybase format to drop an index is

DROP INDEX tablename.indexname.

HTH

Tim
 
Hi,

There is a stored procedure "sp_help" which can be used to get information about the database objects like tables, indexes.

Just use &quot;sp_help <table_name>&quot;

Thanks
-Mithra
 
hello,

you can also try the sybase central software...for a visual approach rather than command line...

cheers,

q.
 
Hi,

You can use sp_helpindex to see indexes for a given table name.

sp_helpindex <Table Name>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top