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
 General SQL Server Forums
 New to SQL Server Programming
 Deleting single column record from a table

Author  Topic 

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2011-03-02 : 09:14:55
Iam getting an error when I am trying to delete a single column record from a table.

DELETE
trigid FROM REQNO
WHERE requestid = 789654

triagedt is a column in the REQNO table

Error Message that I have been getting

Msg 208, Level 16, State 1, Line 1
Invalid object name 'triagedt'.

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-03-02 : 09:33:23
are you trying to drop a column from a table or remove all records from a table where requestid = 789654? Are you trying to update a column's values to nulls?

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2011-03-02 : 09:41:40
Iam trying to delete triagedt column value from REQNO Table where the requestid = 789654

The REQNO Table has several other columns and it only has 1 row of data for the requestid 789654


Thanks
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-03-02 : 09:59:10
Okay, still not sure I'm following, but I think you want to update the value in the triagedt column in the RECNO table where requestid = 789654. If that is true:

UPDATE RECNO
SET triagedt = null
WHERE requestid = 789654

Jim


Everyday I learn something that somebody else already knew
Go to Top of Page

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2011-03-02 : 10:26:06
Great
Why on Earth was I not thinking to update it and just trying to delete

Thanks Much
Go to Top of Page
   

- Advertisement -