Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

list constraints
how can i use query analyzer to list the constraints for a given table?



Report this thread to moderator Post Follow-up to this message
Old Post
mcnewsxp
07-29-05 02:23 PM


RE: list constraints
hi

for this u can use sp_help <tablename>

http://msdn.microsoft.com/library/d... />
p_304w.asp


--
best Regards,
Chandra
http://chanduas.blogspot.com/
http://groups.msn.com/SQLResource/
---------------------------------------



"mcnewsxp" wrote:

> how can i use query analyzer to list the constraints for a given table?
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Chandra
07-29-05 02:23 PM


Re: list constraints
Hi,

You could also query the information schema system view.

Select * from INFORMATION_SCHEMA. CONSTRAINT_COLUMN_US
AGE
where  table_name='tablenam
e'

Thanks
Hari
SQL Server MVP


"mcnewsxp" <mcourter@mindspring.com> wrote in message
news:utbw6EElFHA.2920@TK2MSFTNGP14.phx.gbl...
> how can i use query analyzer to list the constraints for a given table?
>



Report this thread to moderator Post Follow-up to this message
Old Post
Hari Prasad
07-29-05 02:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:31 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006