ben Exec(@sql)
gelen değer elde ve @Rowcount(int)
İşteDönüş değeri
atamak istediğiniz benim sorgu i doğru anlamak
'SET @RowCount = (select count(*)
FROM dbo.Comm_Services
WHERE CompanyId = '+cast(@CompanyId as char)+' and '[email protected]+')'
('...') '. –