SAP Knowledge Base Article - Preview

3277823 - Procedure or built-in function to identify system objects - SAP ASE

Symptom

How to find system objects (tables, views, procedures) in "sysobjects" table?

"Sysobjects" table has a column called type where values "S" is system table and "U" is user table.

We can:

======

1> use testdb
2> go
1> select name,type from sysobjects where type in ("S","U")
2> go
name                                                                                                                                                                                                                                                            type
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----
sysobjects                                                                                                                                                                                                                                                      S
sysindexes                                                                                                                                                                                                                                                      S
syscolumns                                                                                                                                                                                                                                                    S
systypes                                                                                                                                                                                                                                                          S
syslogs                                                                                                                                                                                                                                                            S
…..
…..
tab1                                                                                                                                                                                                                                                                   U
tab2                                                                                                                                                                                                                                                                   U
tab3                                                                                                                                                                                                                                                                   U
tab4                                                                                                                                                                                                                                                                   U
tab5                                                                                                                                                                                                                                                                   U
tab6                                                                                                                                                                                                                                                                   U

(37 rows affected)

=======

For procedures, generally we have “sp_xxxxx” but an user can also use this prefix ("sp_") to create procedure.


Read more...

Environment

SAP Adaptive Server Enterprise 16.0 SP04

Keywords

Procedure built-in function identify system objects  tables procedures views 827438 CR 827438 CR 827438 CR# 827438 , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.