Visual Basic in SQL Server
Home > Ask the SQL Server Experts > Jeremy Kadlec - Performance Tuning Questions & Answers > Display all tables from SQL Server using Visual Basic 6.0
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Display all tables from SQL Server using Visual Basic 6.0

Jeremy Kadlec EXPERT RESPONSE FROM: Jeremy Kadlec

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 23 May 2005
How do I display all of the tables from SQL Server using Visual Basic 6.0? For example, if I have three tables in a public database, how do I display only the table names that are in the public database?

>
EXPERT RESPONSE
I would recommend using the Information Schema Views in your database and specify the correct WHERE clause. Here is an example:
USE Pubs
SELECT Table_Name 
FROM INFORMATION_SCHEMA.Tables
WHERE Table_Name IN ('Authors', 'Titles', 'TitleAuthor')


Do you have comments on this Ask the Expert Q&A? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Jeremy Kadlec - Performance Tuning
View query execution plan in SQL Server with this method
Adding non-clustered indexes to SQL Server columns
Change collation to SQL Server 2005 after upgrading databases
Is my SQL Server 2000 optimized?
What impact does changing one record have on the database?
Is there a maximum number of sockets that SQL can handle?
Why is my SQL Server frequently corrupted?
How to speed up a composite nonclustered index-based query
Can I change the date format when moving a flat file to SQL?
What's the best way to page SQL Server data results?

SQL Server performance and tuning
SQL Server stored procedures tutorial: Write, tune and get examples
Virtual database storage for SQL Server: Friend or foe?
Tutorial: SQL Server 2005 Analysis Services
Tutorial: Migrating to SANs from local SQL Server disk storage
SQL Server memory configurations for procedure cache and buffer cache
Using the OUTPUT clause for practical SQL Server applications
Check SQL Server database and log file size with this stored procedure
SQL Server PerfMon counters for access methods and buffer manager
Find size of SQL Server tables and other objects with stored procedure
Monitor SQL Server disk I/O with PerfMon counters

Visual Basic in SQL Server
Retrieve images from SQL Server and store in VB.Net
Developing CLR database objects: 10 tips, 10 minutes
CLR architecture
Creating CLR database objects
CLR assemblies in SQL Server 2005
User-Defined Functions
User-Defined Types
.NET database object security
Debugging CLR database objects
CLR triggers
Visual Basic in SQL Server Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
contiguity  (SearchSQLServer.com)
contiguous  (SearchSQLServer.com)
drilldown  (SearchSQLServer.com)
hashing  (SearchSQLServer.com)
hybrid online analytical processing  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts