SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: 测试时间
-- =============================================
Alter PROCEDURE [dbo].[sp_testdatetime]
@dt datetime
AS --SET NOCOUNT ON;
select * from tblImages where  dtCreateion<@dt
GOexec sp_testdatetime @dt=''2009-05-19 23:08:06.437'' 执行该存储过程
显示错误
消息 102,级别 15,状态 1,第 1 行
'2009' 附近有语法错误。
请求好心人解决