» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2006, 11:21 AM
sultan sultan is offline
Junior Member
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sultan is on a distinguished road
Red face command for getting all contraints on table

Hello mates
help NOOBEE here
I want to know is there any command through which we can get all the consraints on a table or in a databases. In the same way how to get the all table names in a database from the command prompt or thorugh query analyzer.

Thanks in advance
bye all -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-30-2006, 11:23 AM
ruskin ruskin is offline
Junior Member
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ruskin is on a distinguished road
Default

Its simple

INFORMATION_SCHEMA.CONSTRAINT_TABLE_USAGE and INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE

look these up in BOL (Books OnLine)

Hope it helps -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 07-30-2006, 11:28 AM
domdom domdom is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
domdom is on a distinguished road
Default

you could also use:



Original - sql Code
EXEC sp_helpindex 'TABLE_NAME'

EXEC sp_helpindex 'TABLE_NAME' -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to add posts to a phpbb table after moving servers. tanny MySQL Forums 3 02-13-2007 03:44 PM
adding value to the table. Eshur MySQL Forums 1 11-29-2006 06:36 AM
temp table generation? Bshishe MySQL Forums 1 11-07-2006 04:28 AM
designing table relations? Jett MySQL Forums 1 08-17-2006 10:23 AM
error= #1036 - Table 'table' is read only futuristic PHP Programming and Tips 1 08-12-2006 10:21 AM


All times are GMT. The time now is 08:17 PM.