This is my stored procedure I am trying to create:
CREATE PROCEDURE [cih_owner].[UpdateDisplayOrder]
@CbpTableName varchar (21),
@CbpObjId int,
@CbpId int,
@DisplayOrder int
AS
BEGIN
IF (@CbpTableName = "CbpActivity")
BEGIN
UPDATE [cih_owner].[CbpActivity] SET DisplayOrder = @DisplayOrder WHERE Id = @CbpObjId AND CbpId = @CbpId
;
END
END
GO
However, in line that reads:
(@CbpTableName = "CbpActivity")
I get squigglies under
"CbpActivity"
with the error
Invalid column name 'CbpActivity'
All I am trying to do is compare a string that I sent to the stored procedure.
Thanks!