CREATE TRIGGER sampleTrigger
ON database1.dbo.table1
FOR DELETE
AS
DELETE FROM database2.dbo.table2
WHERE bar = 4 AND ID IN(SELECT deleted.id FROM deleted)
GO
CREATE TRIGGER sampleTrigger
ON database1.dbo.table1
FOR DELETE
AS
DELETE FROM database2.dbo.table2
WHERE bar = 4 AND ID IN(SELECT deleted.id FROM deleted)
GO
Cara Mendapatkan Nilai yang Tidak Mengandung Angka di SQL Server
Hitungan tanpa kode (*) vs tabel Sistem
Menghitung jumlah baris yang dikembalikan oleh prosedur tersimpan
Pengantar Keamanan Tingkat Baris di SQL Server
Gunakan Excel 2010 untuk membaca/menulis ke database SQL Server 2008 menggunakan prosedur tersimpan