Home Forums SQL Server 7,2000 T-SQL execute sp_executesql COUNT(*) Output RE: execute sp_executesql COUNT(*) Output

  • I think you need your @COuntSQLQUery to be this: "Select @recordcount = count(*) from dbo.table1"

    The question now becomes, why are you using dynamic sql for this?