dbTalk Databases Forums  

How do I view table information such as constraints?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How do I view table information such as constraints? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ben_cameron00@hotmail.com
 
Posts: n/a

Default How do I view table information such as constraints? - 09-19-2007 , 03:40 AM






I remember once using a command in Query Analyser that gave me all the
information about a table. It showed details about the columns,
constraints, keys, indexes etc.

I can't remember how I did this? Can anyone help me?

It could of been a stored proc that I called or a query on the system
tables.

I do know that it was very simple to do and it was executed in Query
Analyser.

Can anyone help me?


Reply With Quote
  #2  
Old   
Roy Harvey (MVP)
 
Posts: n/a

Default Re: How do I view table information such as constraints? - 09-19-2007 , 06:24 AM






EXEC sp_help tablename

Roy Harvey
Beacon Falls, CT

On Wed, 19 Sep 2007 01:40:49 -0700, ben_cameron00 (AT) hotmail (DOT) com wrote:

Quote:
I remember once using a command in Query Analyser that gave me all the
information about a table. It showed details about the columns,
constraints, keys, indexes etc.

I can't remember how I did this? Can anyone help me?

It could of been a stored proc that I called or a query on the system
tables.

I do know that it was very simple to do and it was executed in Query
Analyser.

Can anyone help me?


Reply With Quote
  #3  
Old   
Sems
 
Posts: n/a

Default Re: How do I view table information such as constraints? - 09-26-2007 , 03:43 AM



On Sep 19, 11:24 pm, "Roy Harvey (MVP)" <roy_har... (AT) snet (DOT) net> wrote:
Quote:
EXEC sp_help tablename

Roy Harvey
Beacon Falls, CT



On Wed, 19 Sep 2007 01:40:49 -0700, ben_camero... (AT) hotmail (DOT) com wrote:
I remember once using a command in Query Analyser that gave me all the
information about a table. It showed details about the columns,
constraints, keys, indexes etc.

I can't remember how I did this? Can anyone help me?

It could of been a stored proc that I called or a query on the system
tables.

I do know that it was very simple to do and it was executed in Query
Analyser.

Can anyone help me?- Hide quoted text -

- Show quoted text -
Thanks, thats what I was after.



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.