Wrox Programmer Forums
| 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 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 February 26th, 2004, 04:22 AM
Authorized User
Join Date: Nov 2003
Location: Mataro, Barcelona, Spain.
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default desc table


In Oracle exists a command that shows the structure of any table: DESC <table>.

Which one is the equivalent in SQL-Server?

Thanks :)

World only exists into your mind.
Old February 26th, 2004, 07:35 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

EXEC sp_help tablename
Old February 26th, 2004, 11:47 AM
Friend of Wrox
Join Date: Jun 2003
Location: Hudson, MA, USA.
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post

You can also query the INFORMATION_SCHEMA system views. In particular, INFORMATION_SCHEMA.COLUMNS lists a bunch of information about the columns in a table.

Jeff Mason
Custom Apps, Inc.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Order by Desc Access 2007 mateenmohd Access 2 June 10th, 2008 09:11 AM
Desc on multiple tables azazael Oracle 2 March 28th, 2007 08:05 PM
How to Assign a Desc. to a Class Member BrianWren VB.NET 2002/2003 Basics 3 June 1st, 2005 02:07 PM
Desc order problem dssachdeva Oracle 0 September 17th, 2003 04:42 AM
Err Desc: Operation must use an updateable query vincentc Access ASP 1 September 3rd, 2003 02:38 AM

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