Table: BatchCREATE TABLE [dbo].[batch] ( [batch_ID] [bigint] IDENTITY (1, 1) NOT NULL , [batchCode] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) ON [PRIMARY]GO
Table: Course_DetailsCREATE TABLE [dbo].[course_details] ( [course_code] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [course_name] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [course_specialisation] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [course_level] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [batch] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [faculty_firstname] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [faculty_middlename] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [faculty_lastname] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [course_credit] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [course_website] [varchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [course_outline] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]GO
Trigger:CREATE TRIGGER deleteCourse ON batchFOR DELETEASdeletefrom course_detailswhere batch in (select batchCode from deleted)
THIS IS MY TABLE & TRIGGER!quote:
Originally posted by khtan
will you be able to provide the scripts (table DDL, data DML etc) that able to reproduce the problem ?
KH[spoiler]Time is always against us[/spoiler]