Click here to Skip to main content
15,886,919 members
Home / Discussions / Database
   

Database

 
GeneralRe: Looking for reference book Pin
Mike Dimmick4-Jan-08 13:38
Mike Dimmick4-Jan-08 13:38 
GeneralRe: Looking for reference book Pin
Reza Raad5-Jan-08 18:46
Reza Raad5-Jan-08 18:46 
GeneralRe: Looking for reference book Pin
Leo Smith7-Jan-08 1:51
Leo Smith7-Jan-08 1:51 
GeneralRe: Looking for reference book Pin
Leo Smith7-Jan-08 1:51
Leo Smith7-Jan-08 1:51 
GeneralMulti-client access: good practice Pin
goldoche4-Jan-08 5:53
goldoche4-Jan-08 5:53 
GeneralRe: Multi-client access: good practice Pin
pmarfleet4-Jan-08 13:03
pmarfleet4-Jan-08 13:03 
GeneralRe: Multi-client access: good practice Pin
Mike Dimmick4-Jan-08 13:45
Mike Dimmick4-Jan-08 13:45 
GeneralHelp with trigger please... Pin
Support1234-Jan-08 0:36
Support1234-Jan-08 0:36 
i have written a trigger as followed:

<br />
-- ================================================<br />
-- Template generated from Template Explorer using:<br />
-- Create Trigger (New Menu).SQL<br />
--<br />
-- Use the Specify Values for Template Parameters <br />
-- command (Ctrl-Shift-M) to fill in the parameter <br />
-- values below.<br />
--<br />
-- See additional Create Trigger templates for more<br />
-- examples of different Trigger statements.<br />
--<br />
-- This block of comments will not be included in<br />
-- the definition of the function.<br />
-- ================================================<br />
SET ANSI_NULLS ON<br />
GO<br />
SET QUOTED_IDENTIFIER ON<br />
GO<br />
-- =============================================<br />
-- Author:		<Author,,Name><br />
-- Create date: <Create Date,,><br />
-- Description:	<Description,,><br />
-- =============================================<br />
CREATE TRIGGER tr_stagingEmployer_Update<br />
   ON  Employer<br />
   AFTER UPDATE<br />
   AS<br />
	-- SET NOCOUNT ON added to prevent extra result sets from<br />
	-- interfering with SELECT statements.<br />
	SET NOCOUNT ON;<br />
<br />
	INSERT INTO stagingEmployer<br />
	SELECT<br />
		*, 'U' as [Action]<br />
	FROM<br />
		Inserted<br />
GO


BUT i get error stating:

<br />
Msg 311, Level 16, State 1, Procedure tr_stagingEmployer_Update, Line 14<br />
Cannot use text, ntext, or image columns in the 'inserted' and 'deleted' tables.<br />


what is wrong with this query?

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

GeneralRe: Help with trigger please... Pin
pmarfleet4-Jan-08 1:14
pmarfleet4-Jan-08 1:14 
QuestionRe: Help with trigger please... Pin
Support1234-Jan-08 1:44
Support1234-Jan-08 1:44 
GeneralRe: Help with trigger please... Pin
pmarfleet4-Jan-08 2:08
pmarfleet4-Jan-08 2:08 
QuestionExecution Time for Query. Pin
Sasmi_Office3-Jan-08 23:17
Sasmi_Office3-Jan-08 23:17 
GeneralRe: Execution Time for Query. Pin
Colin Angus Mackay4-Jan-08 0:34
Colin Angus Mackay4-Jan-08 0:34 
GeneralRe: Execution Time for Query. Pin
Michael Potter4-Jan-08 3:59
Michael Potter4-Jan-08 3:59 
GeneralSSIS package not executing on the server but runs fine on my computer... Pin
Support1233-Jan-08 20:29
Support1233-Jan-08 20:29 
GeneralRe: SSIS package not executing on the server but runs fine on my computer... Pin
pmarfleet3-Jan-08 22:17
pmarfleet3-Jan-08 22:17 
GeneralRe: SSIS package not executing on the server but runs fine on my computer... Pin
Support1234-Jan-08 0:32
Support1234-Jan-08 0:32 
GeneralRe: SSIS package not executing on the server but runs fine on my computer... Pin
pmarfleet4-Jan-08 1:11
pmarfleet4-Jan-08 1:11 
AnswerRe: SSIS package not executing on the server but runs fine on my computer... Pin
Reza Raad5-Jan-08 18:43
Reza Raad5-Jan-08 18:43 
GeneralRe: SSIS package not executing on the server but runs fine on my computer... Pin
pmarfleet5-Jan-08 23:49
pmarfleet5-Jan-08 23:49 
Generalsome help about sql internal architecture Pin
tasumisra3-Jan-08 17:09
tasumisra3-Jan-08 17:09 
GeneralRe: some help about sql internal architecture Pin
John_Adams4-Jan-08 2:03
John_Adams4-Jan-08 2:03 
GeneralINSERT INTO two tables at once Pin
john john mackey3-Jan-08 7:00
john john mackey3-Jan-08 7:00 
GeneralRe: INSERT INTO two tables at once Pin
Dave Kreskowiak3-Jan-08 14:30
mveDave Kreskowiak3-Jan-08 14:30 
GeneralRe: INSERT INTO two tables at once Pin
Support1233-Jan-08 20:40
Support1233-Jan-08 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.