Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 25th, 2005, 04:42 AM
Registered User
 
Join Date: Jul 2005
Location: ahmedabad, Gujarat, India.
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
Reply With Quote
  #2 (permalink)  
Old July 25th, 2005, 05:22 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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)
Reply With Quote
  #3 (permalink)  
Old July 25th, 2005, 09:38 AM
Registered User
 
Join Date: May 2005
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old July 25th, 2005, 09:41 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Location: Wellington, FL , USA.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.