 |
|
โค้ดในนี้ มันสร้างไม่ได้ครับ ผมใส่โค้ดถูกหรือป่าวครับ ยังไงก็แนะนำให้หน่อยนะครับ ว่าสร้างTRIGER ยังไง ในSQL 2008
ผมจะสร้าง Trigger Name: dbo.AutoReborn ใน Table : dbo.ChaInfo รบกวนผู้รู้ใครรู้ ทำโค้ดให้หน่อยนะครับ ขอบคุณครับ
Code (PHP)
-- ================================================
-- Template generated from Template Explorer using:
-- Create Trigger (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- See additional Create Trigger templates for more
-- examples of different Trigger statements.
--
-- This block of comments will not be included in
-- the definition of the function.
-- ================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE TRIGGER <Schema_Name, sysname, Schema_Name>.<dbo.AutoReborn sysname, dbo.AutoReborn>
ON <Schema_Name, sysname, Schema_Name>.<Table_Name, sysname, Table_Name>
AFTER <Data_Modification_Statements, , INSERT,DELETE,UPDATE>
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for trigger here
END
GO
Tag : Ms SQL Server 2008
|
|
 |
 |
 |
 |
Date :
2011-04-07 18:41:31 |
By :
banksarino |
View :
2148 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |