Rückgabewert von exec (@sql)

Möchte ich den Wert aus Exec(@sql) und weisen @Rowcount(int)

Hier ist meine Abfrage:

'SET @RowCount = (select count(*) 
                    FROM dbo.Comm_Services 
                   WHERE CompanyId = '+cast(@CompanyId as char)+' and '+@condition+')'

InformationsquelleAutor der Frage sreekanth | 2010-11-09

Schreibe einen Kommentar