Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Listing all tables

0 views
Skip to first unread message

Ben "SheepCow" O'Neill

unread,
Sep 9, 2000, 6:49:41 PM9/9/00
to
Hi,
I'm looking for a way to list all tables in a database.
The SQL command "SHOW TABLES" doesn't work, (I'm trying it on an Access
database), and I really need to get this to work. Does anyone have any
ideas?

Can you please email me, since I can't check the news groups as often as my
email.

shee...@planetunreal.com

Thanks!

--
Ben "SheepCow" O'Neill
GameSpy Arcade Admin
shee...@gamespyarcade.com
ICQ #: 37758267


Carlos Eduardo Rojas

unread,
Sep 9, 2000, 7:15:17 PM9/9/00
to
You can use one of these approaches:
1) EXEC sp_tables
2) select * from information_schema.tables
--
Hope this helps,
--------------------------------------
Carlos Eduardo Rojas
MCSE+I, MCDBA, MCSS
"Ben "SheepCow" O'Neill" <shee...@planetunreal.com> wrote in message
news:##slDBrGAHA.254@cppssbbsa05...

David Sanderson

unread,
Sep 9, 2000, 8:33:54 PM9/9/00
to
Loop through the MSysObjects table. Type is 1.

"Ben "SheepCow" O'Neill" <shee...@planetunreal.com> wrote in message
news:##slDBrGAHA.254@cppssbbsa05...

john spencer

unread,
Sep 9, 2000, 8:46:41 PM9/9/00
to
Access 97

The following SQL will probably do what you want.

SELECT MSysObjects.Type, MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=6));

Al Jones

unread,
Sep 9, 2000, 9:45:56 PM9/9/00
to
go to http://www.ssw.com.au/SSW/Download/default.asp and take a look at
their Simple Table Documentor
std_ver9-01.zip (Microsoft Access 2000 Version) 56 KB. Their commercial
product didn't do what I needed, but they have what appear to be some
interesting dbase products.
--
** AlJ...@fbns.net
** Alfred...@Yahoo.com
** ICQ me at 70219228

"David Sanderson" <dave.sa...@usa.net> wrote in message
news:uVKtF4r...@cppssbbsa02.microsoft.com...

0 new messages