alternative to sp_columns?!? with dbd::sybase

alternative to sp_columns?!? with dbd::sybase

Post by paulsi.. » Fri, 07 Jan 2000 04:00:00



Hello all,

We are currently using "sp_columns <table_name>" to find out the column
names and data types for any given table.  Unfortunately, the sp_columns
procedure is too slow for our purposes and is severely hindering our
application (which is a perl script running on Apache mod_perl with
DBI/DBD::Sybase).  Is there a faster way to just find out the column
names and data types for a table?  Perhaps there are some internal
tables we can query?  Or perhaps to write a striped down, more efficient
version of sp_columns which only provides the bare bones information we
need?

Any help for this Sybase rookie appreciated... thanks...

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

alternative to sp_columns?!? with dbd::sybase

Post by Mark A. Parson » Sat, 08 Jan 2000 04:00:00



> Hello all,

> We are currently using "sp_columns <table_name>" to find out the column
> names and data types for any given table.  Unfortunately, the sp_columns
> procedure is too slow for our purposes and is severely hindering our
> application (which is a perl script running on Apache mod_perl with
> DBI/DBD::Sybase).  Is there a faster way to just find out the column
> names and data types for a table?  Perhaps there are some internal
> tables we can query?  Or perhaps to write a striped down, more efficient
> version of sp_columns which only provides the bare bones information we
> need?

> Any help for this Sybase rookie appreciated... thanks...

sp_columns is a Sybase-supplied stored procedure.  Have you looked at
the source code for said stored proc?  From here you can find the
'internal' system table(s) that contain the info you're looking for.

--
Mark Parsons
Pegasys Ltd

 
 
 

alternative to sp_columns?!? with dbd::sybase

Post by Mark A. Parson » Sat, 08 Jan 2000 04:00:00



> Hello all,

> We are currently using "sp_columns <table_name>" to find out the column
> names and data types for any given table.  Unfortunately, the sp_columns
> procedure is too slow for our purposes and is severely hindering our
> application (which is a perl script running on Apache mod_perl with
> DBI/DBD::Sybase).  Is there a faster way to just find out the column
> names and data types for a table?  Perhaps there are some internal
> tables we can query?  Or perhaps to write a striped down, more efficient
> version of sp_columns which only provides the bare bones information we
> need?

> Any help for this Sybase rookie appreciated... thanks...

sp_columns is a Sybase-supplied stored procedure.  Have you looked at
the source code for said stored proc?  From here you can find the
'internal' system table(s) that contain the info you're looking for ...
as well as get an idea of which pieces of sp_columns you may want to
keep, throw-away and/or modify for your own code.

--
Mark Parsons
Pegasys Ltd

 
 
 

1. alternative to sp_columns? with dbd::sybase

Hello all,

We are currently using "sp_columns <table_name>" to find out the column
names and data types for any given table.  Unfortunately, the sp_columns
procedure is too slow for our purposes and is severely hindering our
application (which is a perl script running on Apache mod_perl with
DBI/DBD::Sybase).  Is there a faster way to just find out the column
names and data types for a table?  Perhaps there are some internal
tables we can query?  Or perhaps to write a striped down, more efficient
version of sp_columns which only provides the bare bones information we
need?

Any help for this Sybase rookie appreciated... thanks...

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Oracle connection caching

3. problems connecting to a ms sql server (using DBD-Sybase and sybase libs)

4. Extracting DB2400 source data

5. DBD::Pg & DBD::PgPP Cpan question

6. installing msde

7. DBD::Sybase & MSSQL

8. SQL Server Transaction Log, Backing up

9. dbd querys of sybase tablles

10. Problem with DBD::Sybase and perl2exe

11. integrating DBD-Sybase-0.94 to use FreeTDS

12. DBD::Sybase

13. DBD::Sybase & MSSQL