views:

73

answers:

1

There is an sp,

EXEC Dbo.CREATE_A_PEACEFULL_WORL 'A',2,??

?? presents a smalldatetime variable, the date is must be like; 24.02.2010 00:00:00

how can i pass it?

+1  A: 

Try this:

EXEC Dbo.CREATE_A_PEACEFULL_WORL 'A',2
    ,SELECT CONVERT(varchar(10),@yourSmallDate,104)
    +' '+CONVERT(varchar(8),@yourSmallDate,108)
KM