Click here to Skip to main content
15,916,030 members
Home / Discussions / Database
   

Database

 
GeneralRe: inserting into SQL table with just a primary key column? Pin
obymathew10-Jan-08 13:29
obymathew10-Jan-08 13:29 
GeneralDistinct in SQL Server Pin
.NET- India 4-Jan-08 23:19
.NET- India 4-Jan-08 23:19 
GeneralRe: Distinct in SQL Server Pin
Vimalsoft(Pty) Ltd5-Jan-08 7:37
professionalVimalsoft(Pty) Ltd5-Jan-08 7:37 
GeneralRe: Distinct in SQL Server Pin
.NET- India 6-Jan-08 18:33
.NET- India 6-Jan-08 18:33 
GeneralRe: Distinct in SQL Server Pin
Vimalsoft(Pty) Ltd6-Jan-08 20:03
professionalVimalsoft(Pty) Ltd6-Jan-08 20:03 
GeneralRe: Distinct in SQL Server Pin
.NET- India 6-Jan-08 20:14
.NET- India 6-Jan-08 20:14 
QuestionOracle, BizTalk, SQL Server Pin
Ph@ntom4-Jan-08 20:39
Ph@ntom4-Jan-08 20:39 
GeneralRe: Oracle, BizTalk, SQL Server Pin
Vimalsoft(Pty) Ltd5-Jan-08 7:45
professionalVimalsoft(Pty) Ltd5-Jan-08 7:45 
GeneralRe: Oracle, BizTalk, SQL Server Pin
Paul Conrad5-Jan-08 9:57
professionalPaul Conrad5-Jan-08 9:57 
GeneralRe: Oracle, BizTalk, SQL Server Pin
Pete O'Hanlon5-Jan-08 10:22
mvePete O'Hanlon5-Jan-08 10:22 
GeneralReportViewer Problem Pin
sangramkp4-Jan-08 18:45
sangramkp4-Jan-08 18:45 
GeneralRe: ReportViewer Problem Pin
pmarfleet4-Jan-08 23:57
pmarfleet4-Jan-08 23:57 
GeneralUser Defined Data Types Pin
AAGTHosting4-Jan-08 14:35
AAGTHosting4-Jan-08 14:35 
GeneralRe: User Defined Data Types Pin
Paul Conrad4-Jan-08 17:39
professionalPaul Conrad4-Jan-08 17:39 
GeneralLooking for reference book Pin
Leo Smith4-Jan-08 6:12
Leo Smith4-Jan-08 6:12 
GeneralRe: Looking for reference book Pin
pmarfleet4-Jan-08 13:04
pmarfleet4-Jan-08 13:04 
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 

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.