select @van_id + replace(convert(varchar(11), @nextdel, 113), ' ' ,'') datekey from replicationLock set @count = @@rowcount
SELECT @count = COUNT(@van_id + replace(convert(varchar(11), @nextdel, 113), ' ' ,'')) from replicationLock