Re: retrieve table properties through query?
From: Keith Kratochvil (sqlguy.back2u_at_comcast.net)
Date: 04/19/04
- Next message: Nick: "Installation Problem"
- Previous message: David Hepburn III: "Re: Launching Enterprise Manager"
- In reply to: David Hepburn III: "retrieve table properties through query?"
- Next in thread: David Hepburn III: "Re: retrieve table properties through query?"
- Reply: David Hepburn III: "Re: retrieve table properties through query?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 12:19:35 -0500
This should get you started:
USE northwind
GO
SELECT * FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Customers '
There are lots of helpful INFORMATION_SCHEMA views. Look within Books Online (within your SQL Server program group) for more information.
-- Keith "David Hepburn III" <null@null.com> wrote in message news:40840893.20408@null.com... > Can anyone tell me if there's a query command that will > return information about a table's properties, such as > field names, field data types, field lengths, index names, > etc? > > For example, I'm looking for output that would show the > following, if we queried the Customers table in the MS > Northwind SQL DB: > > CustomerID, nchar, 5, nulls=no > CompanyName, nvarchar, 40, nulls=no > ContactName, nvarchar, 30, nulls=yes > > etc... > > Thanks!!! > David >
- Next message: Nick: "Installation Problem"
- Previous message: David Hepburn III: "Re: Launching Enterprise Manager"
- In reply to: David Hepburn III: "retrieve table properties through query?"
- Next in thread: David Hepburn III: "Re: retrieve table properties through query?"
- Reply: David Hepburn III: "Re: retrieve table properties through query?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|