rianto isaac's Weblog

rianto utomo isaac sahala utomo

sql, trigger delete

leave a comment »

CREATE TRIGGER [junal_delete] ON [dbo].[aGL_Jurnal]
FOR DELETE
AS
if (select flgpost from deleted) = 1
begin
RAISERROR (‘Cannot delete this journal.’, 16, 1)
ROLLBACK TRAN
end

Written by isaaconi

Februari 7, 2011 pada 3:38 pm

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: