Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 25th, 2005, 04:42 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to shahbaz_sb
Default What are the tables in Database In sql 2000

how can you know the tables in the particular database can you help me out for that utitliy or query or stored procedure

shahbaz b. subedar
 
Old July 25th, 2005, 05:22 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

http://msdn.microsoft.com/library/de...asp?frame=true

This sort of question belongs in the Database - SQL Server forum.


--

Joe (Microsoft MVP - XML)
 
Old July 25th, 2005, 09:38 AM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

lets say u have database name 'pubs'

in query analyzer type and execute and u can see the user tables as well as others relevanet msgs.
use pubs
sp_help

 
Old July 25th, 2005, 09:41 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

for a particular database you can query the sysobjects table as follows:

select * from sysobjects where type = 'u' order by name

For the pubs database, this will return the names of the user tables.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Tables From SQL Server 2005 to 2000 MissHenesy SQL Server 2005 0 April 15th, 2008 12:18 PM
copy a database using SQL Server 2000 samnachilomo SQL Server 2000 3 November 20th, 2006 01:15 AM
How transfer access tables to sql server 2000? method SQL Server 2000 1 June 23rd, 2005 06:17 PM
no usr tables VB 6/ XP Pro, SQL 2000/Sml Bz 2003 rreynolds Pro VB Databases 1 December 14th, 2004 02:50 PM
Connecting to SQL 2000 Database - New at this Tee88 Classic ASP Databases 14 October 2nd, 2004 04:23 AM





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