Solved

Show Tables, Explain TableName

Posted on 2007-04-10
2
659 Views
Last Modified: 2009-12-16
With MySQL there is a command, "show tables" that lists all the tables in a selected database. MySQL also has "explain tablename" which gives the column information about the tablename entered.

Is there something similar to this in SQL Server 2005? If not how else can I get table/column information about a specific database?
0
Comment
Question by:craigdev
2 Comments
 
LVL 50

Accepted Solution

by:
Lowfatspread earned 500 total points
Comment Utility
you can use the information schema  views to get the information...

select * from information_schema.tables
 
or

select * from information)schema.columns
 where table_name = 'xxxxx'
  and table_schema = 'dbo'
 order by table_name,table_schema,ordinal_position
0
 
LVL 1

Author Comment

by:craigdev
Comment Utility
awesome thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now