Re: How do I get a list of available tables?

From: Rohtash Kapoor (rohtash_nospam_at_sqlmantra.com)
Date: 03/10/04


Date: Wed, 10 Mar 2004 08:14:11 -0800

USE Northwind

--This will list all the Tables
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'

--This will list all the Tables which have term 'Customer' in the name
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
AND TABLE_NAME LIKE '%Customer%'

---
Rohtash Kapoor
http://www.sqlmantra.com
"James C" <jchin@vansco.ca> wrote in message
news:8504E7E4-3584-4D62-9603-1A7A3388169A@microsoft.com...
> How do I get a list of tables that contain specific text in the name of
the table?  Is this even possible?


Relevant Pages

  • Re: String value in where clause
    ... "Dale Edmondson" wrote in message ... > You added a numeric value for a Customer Id in Northwind? ... >>> these results in both my database and the Northwind database. ...
    (microsoft.public.sqlserver.ce)
  • Re: String value in where clause
    ... You added a numeric value for a Customer Id in Northwind? ... The field in question for my database is an ncharvar. ... // ID SizeID LookupCode TestCode ...
    (microsoft.public.sqlserver.ce)
  • Re: Report help
    ... Date / Customer / Order ... 1/07 / James / Stapler ... James / Stapler, Paperclips, Post-Its ...
    (microsoft.public.access.reports)
  • Re: Complete Idiot Here... Help
    ... Rick is correct about the form/subform in Northwind. ... multiple times in your tables. ... SELECT CustomerID, Customer, Address, City ...
    (microsoft.public.access.tablesdbdesign)
  • Re: stuff-uk.net - - Horrible service, AVOID THEM!!
    ... >Bubsio AKA James Taylor ... >discuss the problem with the manufacturer. ... respect - the contract is between retailer and customer, ...
    (uk.comp.vendors)