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 2005 Forums
 Transact-SQL (2005)
 How to delete table attribute(VERY URGENT)

Author  Topic 

nishita_s
Yak Posting Veteran

61 Posts

Posted - 2009-07-28 : 07:02:05
How to delete table attribute(VERY URGENT)

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-07-28 : 07:04:38
hi

ALTER TABLE table_name
DROP COLUMN column_name


-------------------------
R..
Go to Top of Page

nishita_s
Yak Posting Veteran

61 Posts

Posted - 2009-07-28 : 07:05:41
Thx but i want to drop constraint or attribute not column.
Go to Top of Page

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-07-28 : 07:08:29
Hi

ALTER TABLE TABLE_NAME
DROP CONSTRAINT CONSTRAINT_NAME

-------------------------
R..
Go to Top of Page

rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2009-07-28 : 07:14:11
quote:
Originally posted by nishita_s

Thx but i want to drop constraint or attribute not column.



what did you mean attribute....can you explain this...

-------------------------
R..
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2009-07-28 : 08:38:55
Simply look up ALTER TABLE in books online.

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
   

- Advertisement -