![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a couple of queries that go against information_schema views in SQLServer to get list of tables, columns, and such. I have looked at Sybase documentation and it does not seem to have an equivalent set of views to accomplish the same task. Are there an alternative queries to get, for example, all tables in a database, or all columns in a table? |
#3
| |||
| |||
|
|
Hello, I have a couple of queries that go against information_schema views in SQLServer to get list of tables, columns, and such. I have looked at Sybase documentation and it does not seem to have an equivalent set of views to accomplish the same task. Are there an alternative queries to get, for example, all tables in a database, or all columns in a table? Thanks in advance |
#4
| |||
| |||
|
|
You may want to contact Ryan Putnam [putnamr (AT) river (DOT) it.gvsu.edu]. He provides a bunch views. An issue that I see is that "sp_" procedures are "write once, use on any database" where as views would have to be loaded into each database of interest. |
#5
| |||
| |||
|
|
"Carl Kayser" <kayser_c (AT) bls (DOT) gov> wrote in message news:<c9nj39$rna$1 (AT) blsnews (DOT) bls.gov>... You may want to contact Ryan Putnam [putnamr (AT) river (DOT) it.gvsu.edu]. He provides a bunch views. An issue that I see is that "sp_" procedures are "write once, use on any database" where as views would have to be loaded into each database of interest. Michael, Carl: I appreciate your responses. I will check out the sp_help. Can I use sp_help programmatically too, say, from an ODBC connection to Sybase? If not, are there system tables that I can use SQL statements to access to get the same information? |
#6
| |||
| |||
|
|
"Carl Kayser" <kayser_c (AT) bls (DOT) gov> wrote You may want to contact Ryan Putnam [putnamr (AT) river (DOT) it.gvsu.edu]. He provides a bunch views. An issue that I see is that "sp_" procedures are "write once, use on any database" where as views would have to be loaded into each database of interest. Michael, Carl: I appreciate your responses. I will check out the sp_help. Can I use sp_help programmatically too, say, from an ODBC connection to Sybase? If not, are there system tables that I can use SQL statements to access to get the same information? I agree with your comments on the "view". It wasn't my intention to create such views, I assumed they would be in a similar location. I would just as easily use system tables if that is where such catalog/schema/etc. information is kept. |
![]() |
| Thread Tools | |
| Display Modes | |
| |