I have a small problem I could tackle quite easily in C# but I have been asked to do it within the SQL.
I have a Stored procedure which takes in an int as a parameter, and I need to check if that parameter is inside the value of a colon seperated column in the database.
(
(
gvf_permitted_projects is null
)
or
( -- @activeProject IN gvf_permitted_projects
-- @activeProject = 11
-- gvf_permitted_projects = '11:17'
)
)
This is inside the where clause of my SELECT, I could do this in C# with minimal effort but I'm not too sure how to do it here. Do I need to use a temp table and then do a select into that?