sql - Passing datetime to a stored procedure & add a 1 sec to datetime -
Here are two things that I want to accomplish.
-
The list I want to pass on my stored procedure in the following format ('2007-05-28 00:00:00') from time to time, but It does not seem that unless I want to increase from one second to @SEAL_DATE, {ts '2007-05-28 00:00: 00'}
-
The next thing is So that it can be used to see the dates of entry and the dates between each other. / P>
In advance thank you
set to QUOTED_IDENTIFIER on ANSI_NULLS set as ALTER process [dbo] [getSealRecordDate] (@SEAL_DATE DATETIME) - "Transfer", "FGFSTRANSFERS", "FGFSTRANSFERS", "FGFSTRANSFERS", "DATE", "FGFSTransferDetails". "TRANSFER_ID", "FGFSTRANSFERS". "TRANSFER_ID", "FGFSTRANSFERS". "Total", "FGFSTransferDetails." "Total", "FGFSCUSTOMERS". "CMF_NAME_1", "FGFSCUSTOMERS". "CMF_NAME_2" from ( "FGFSInvestment". "Dbo". "FGFSTransferDetails" "FGFS" DNA "." Fjifsaanaiashment "" "FGFStroners", "FGFStinners Details", "FGFStinners Details". "TransFare IDX" = "FGF Strons" "TransFair IDID") Inner Join "FGFSInMment". "DBO". "FGFSCOTOMARS" "ON" FGFSTRANSFERS Custodian "=" FGFSCOUROMERS CMF_ACCOUNT " Where ("FGFSTRANSFERS DATE" & gt; = @SEAL_DATE and "". "". "" " "FGFSTRANSFERS DATE" & lt; {ts '2007-05-28 00: 00: 01'}) - EXEC getSealRecordDate {ts '2007-05-28 00:00:00'}
proxy SQL then as it should be: WHERE ( "FGFSTRANSFERS". "DATE"> = @SEAL_DATE and "FGFSTRANSFERS". "DATE" & lt; @ SEAL_DATE + 1 seconds ) & Lt; - something like
DATEADD (second, 1, @SEAL_DATE)
Comments
Post a Comment