Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Problem in dropping a table.

Author  Topic 

chetancool
Starting Member

34 Posts

Posted - 2004-10-21 : 06:52:20
Hi group...
I m having a table called 'PriceInformation. when i try to drop the same with 'drop table command', it is showing error that u cannot drop the table, some rules are binded with it..

How can i view that which rules are binded with the table?


cjain

Kristen
Test

22859 Posts

Posted - 2004-10-21 : 08:16:10
sp_help 'MyTableName' may tell you

Kristen
Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2004-10-21 : 13:33:05
sp_fkeys 'table_name'

ov course sp_help will do the trick to
/rockmoose
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2004-10-21 : 13:39:20
I rather fear them's is rules that are "binded", not FKs ...

Kristen
Go to Top of Page

rockmoose
SQL Natt Alfen

3279 Posts

Posted - 2004-10-21 : 14:10:48
If you have rules bound to some of your table columns, would that matter ?, you should be able to drop the table anyhow !?
Methinks FK's is the problem.

rockmoose
/* Chaos is the nature of things...Order is a lesser state of chaos */
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2004-10-21 : 14:39:27
Of couse you can, silly me. I've got [legacy] RULEs and there's never been a problem dropping the tables.

Dunno what chetancool meant by "cannot drop the table, some rules are binded with it.. " - doesn;t sound like FK, but.

Kristen
Go to Top of Page
   

- Advertisement -