Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 5th, 2005, 07:21 AM
Authorized User
 
Join Date: Jun 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting list of tables using DB name

working on C# windows application
i have retrieved the column names thru the given table name
but cant figure out how to get table names using the name of DB.

Regards


 
Old July 6th, 2005, 12:16 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

select name from sysobjects where type='u'

-Peter
 
Old July 6th, 2005, 12:17 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I should qualify that query: That will work for MSSQL





Similar Threads
Thread Thread Starter Forum Replies Last Post
which privilege for creating a db and tables? hertendreef SQL Server 2005 5 July 11th, 2007 04:04 PM
How do I get a list of all tables of Oracle DB? amjad_mahmood Excel VBA 0 August 5th, 2005 06:56 AM
How to use Tabledef to get list of tables in acce method Access VBA 1 March 23rd, 2005 02:08 PM
list all tables using SELECT Statement rylemer Access 5 March 7th, 2005 08:58 PM
Retrieving the list of tables from a database devi.g@india.com J2EE 0 February 2nd, 2005 09:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.