Bob -
The database step types do not do anything special to the SQL command that you give it. The step just passes the command to the ADO provider. I tried a simple query using the step types with the following command,
"SELECT UUT_RESULT.* FROM UUT_RESULT WHERE ([UUT_SERIAL_NUMBER] = 12345) ORDER BY [EXECUTION_TIME] ASC"
and this return the expected results and the record count parameter was as expected. I tried this on TS 1.0.2 and TS 2.0 with MS Access 2000 and MS SQL Server 7.0. I do not have MS SQL Server 2000 at this time.
It would be surprised if the step types are messing something up.
Questions:
1. Have you verified whether the data is actually returned even though the record count is zero?
2. Are you using any advanced options on the Opend SQL
Statement step type, specifically the cursor type set to forward only? Forward only cursors do not allow for record counts.
Scott Richardson
National Instruments
scott.richardson@ni.com
http://www.ni.com/teststand/
Scott Richardson