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.
| Author |
Topic |
|
GenerationWithoutName
Starting Member
26 Posts |
Posted - 2002-07-30 : 23:35:05
|
| I have Table like this :CREATE TABLE tblData( ID Int Primary Key, Name varchar(35) Null, IsPosted Char(1) Default('0'),)Can i Cancel any Delete Action on "tblData" only when field "IsPosted" value = "1" ...???Can i use Delete Trigger and how ???Please, ... please... help meDIJE |
|
|
byrmol
Shed Building SQL Farmer
1591 Posts |
Posted - 2002-07-30 : 23:45:40
|
DIJEDo you have BOL (Books On Line) installed?If Not.. InstallIf Yes.. Read!!!!!CREATE TRIGGER trtblData_StopDeleteON tblDataFOR DELETEASIF EXISTS(SELECT 1 FROM Inserted WHERE IsPosted = '1') ROLLBACK TRANSACTION DavidM"SQL-3 is an abomination.." |
 |
|
|
|
|
|