Hi
You not printing the @message variable,
USE [EventCalendar]
GO
/****** Object: StoredProcedure [dbo].[sp_EditSingleEvent] Script
Date: 06/13/2007 15:15:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[sp_EditSingleEvent]
-- Add the parameters for the stored procedure here
@apeDate smalldatetime,
@apEvent nvarchar(250),
@who nvarchar (50),
@Event_ID int,
@message nvarchar (200)OUTPUT,
@_type int
AS
Begin
Set @Message = 'Hasnt added yet'
UPDATE apEvent
SET apeDate=@apeDate, apEvent=@apEvent, Who=@Who, _type=@_type
WHERE Event_ID = @Event_ID
Set @message = 'its added'
print @message
END
Regards
Vt
Knowledge is power;Share it
http://oneplace4sql.blogspot.com [quoted text, click to view] "Antonio" <Antonio.Saratan@gmail.com> wrote in message
news:1181767223.195858.111740@a26g2000pre.googlegroups.com...
> This is really weird but for some reason when i run this nothing
> happens except for the message saying it was added. would really
> appreciate someone taking a look at this. Thanks.
>
> USE [EventCalendar]
> GO
> /****** Object: StoredProcedure [dbo].[sp_EditSingleEvent] Script
> Date: 06/13/2007 15:15:24 ******/
> SET ANSI_NULLS ON
> GO
> SET QUOTED_IDENTIFIER ON
> GO
>
> ALTER PROCEDURE [dbo].[sp_EditSingleEvent]
> -- Add the parameters for the stored procedure here
> @apeDate smalldatetime,
> @apEvent nvarchar(250),
> @who nvarchar (50),
> @Event_ID int,
> @message nvarchar (200)OUTPUT,
> @_type int
>
> AS
>
> Begin
> Set @Message = 'Hasnt added yet'
> UPDATE apEvent
> SET apeDate=@apeDate, apEvent=@apEvent, Who=@Who, _type=@_type
> WHERE Event_ID = @Event_ID
> Set @message = 'its added'
> END
>