I'm brand new to SQL Server and trying to write a stored procedure that updates a recordset with the current date/time at the time the stored procedure is called. My code keeps reporting an error near the =. The parameter @SentFax is the PK of the record needing to be updated, any ideas why this doesn't work?
CREATE PROCEDURE FaxMailerSent
-- Add the parameters for the stored procedure here
@SentFax int = 0,
=
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
UPDATE FaxMailer
SET Done = GetDate()
WHERE [Fax_ID] = @SentFax;
END
GO
@SentFax int = 0and the ` = ` on the next line (beforeAS).