I have created one dynamic query and it all works well. I execute the query using:
EXEC sp_executesql @SQLQuery
where @SQLQuery is one dynamic query.
My only question is how can I also return the number of rows present after the execution of this query? I hope my question is clear.
Thanks in advance:)
You can use the
@@rowcountwhich will return you the last query effected row count.