왜 소문자 근처에 잘못된 구문이 있다는 SSRS의 오류가 발생합니까?'<'근처의 구문이 잘못되었습니다.
-- ==========================================================
-- Create Stored Procedure Template for SQL Azure Database
-- ==========================================================
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Campos,,Adrian>
-- Create date: <7/9/2014,,>
-- Description: <Query is meant to purge records in ONP_IL_MAYWOOD that are older than 3 months.,,>
-- =============================================
CREATE PROCEDURE <Purge_Overnight_3Months, sysname, Purge_Overnight_3Months>
-- Add the parameters for the stored procedure here
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
DELETE FROM tblOverNightPermissions WHERE DateAndTime < DATEADD(month, -3, GETDATE());
END
GO
오류 :
Msg 102, Level 15, State 1, Line 6
Incorrect syntax near '<'.
귀하의 질문에 올바르게되었습니다. 이게 진짜 니? –
6 번 라인을 말하고 있습니다, 6 번 라인이 귀하의 검색어입니까? –
@KrisGruttemeyer 그것이 저를 혼란스럽게합니다. 미안하지만 나는 충분히 명확하지 않았다. 위의 6 행은'SET QUOTED_IDENTIFIER ON'이지만 23 행의'<'문자에 대해 불평합니다. – Adrian