Hi All,
I am trying to get the following code in a dataset but it says incorrect syntax near "=". Can anybody please help?
="IF" & Parameters!Department.Value & "= 'Mkg'
BEGIN
Exec " & Parameters!Department.Value & ".dbo.sp_storedprocedure1
END
ELSE
BEGIN
Exec " & Parameters!Department.Value & ".dbo.sp_storedprocedure2
END"