Hi Michael,

> Rather than creating the SQL logic again, substituting the fields desired
with the COUNT(*) instead, is there an easier way to simply say something
like "give me the @@rowcount of the spMyProcThatGetsRows"

If you don't wan't to transfer the result set and count it on the client
side, you can use a temporary table like this:

SQLExec( m.lnHandle, ;
  "CREATE TABLE #x (id int) INSERT #x EXEC " + ;
  "spMyProcThatGetsRows SELECT @@ROWCOUNT DROP TABLE #x" ;
) 

The table definition should match the result set. Unfortunately, there's no
SELECT COUNT(*) FROM EXEC in SQL Server.

-- 
Christof



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to