May 10, 2016 at 1:49 pm
Hi All,
I am passing three date variables in the stored procedure. Depending on whichever variable has value in it, it will be assigned to the Testdate column of the testable. Only one variable will have value others will be null
Create procedure test
(
@TestDate datetime =NULL,
@Testdate2 dateTime=NULL,
@TestDate3 datetime=NULL
)
AS
Update testable
Set TestDate = @TestDate
Its just that depending on whatever variable has value in it that will be assigned to the column TestDate.
Any help will be appreciated.
May 10, 2016 at 1:59 pm
May 10, 2016 at 2:51 pm
anjaliagarwal5 (5/10/2016)
Hi All,I am passing three date variables in the stored procedure. Depending on whichever variable has value in it, it will be assigned to the Testdate column of the testable. Only one variable will have value others will be null
Create procedure test
(
@TestDate datetime =NULL,
@Testdate2 dateTime=NULL,
@TestDate3 datetime=NULL
)
AS
Update testable
Set TestDate = @TestDate
Its just that depending on whatever variable has value in it that will be assigned to the column TestDate.
Any help will be appreciated.
I really hope you have a WHERE clause on your actual UPDATE statement.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply