Hi all,
I am trying to use the In Operator in an update statement, but its not working.
CREATE PROCEDURE Time_ApproveTime
(
@TimeToApprove As VarChar(500)
)
AS
UPDATE CT_Time
SET Approved = -1
WHERE CONVERT(VARCHAR, THID) In (@TimeToApprove)
My problem is i am pulling in a string of integers if thats makes any sense. i.e. 85, 86, 87 etc. THID Is an integer, can someone please help me with this??
Rob
I am trying to use the In Operator in an update statement, but its not working.
CREATE PROCEDURE Time_ApproveTime
(
@TimeToApprove As VarChar(500)
)
AS
UPDATE CT_Time
SET Approved = -1
WHERE CONVERT(VARCHAR, THID) In (@TimeToApprove)
My problem is i am pulling in a string of integers if thats makes any sense. i.e. 85, 86, 87 etc. THID Is an integer, can someone please help me with this??
Rob