Message 1 of 6
ACCESS vs. SQL Server - SQL statement...
Not applicable
01-09-2001
05:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i have created two UDL's, one for ACCESS and the other for SQL Server. my
SQL statement is:
xRS.Open "SELECT NAME FROM PEDESTAL GROUP BY NAME", db, adOpenKeyset,
adLockOptimistic
when i run the SQL statement attached through the ACCESS UDL, the result is
grouped properly with the record count set to the correct number of records.
when i run the same SQL statement in SQL Server attached through the SQL
Server UDL, i return only one record and the record count is set to "-1".
any ideas why the SQL Server is not returning the correct number of records?
(if i remove the "GROUP BY NAME" from the SQL statement, both queries return
the same number of records, as it should...)
--
sc
Mid-State Consultants
scarter@mscon.com
SQL statement is:
xRS.Open "SELECT NAME FROM PEDESTAL GROUP BY NAME", db, adOpenKeyset,
adLockOptimistic
when i run the SQL statement attached through the ACCESS UDL, the result is
grouped properly with the record count set to the correct number of records.
when i run the same SQL statement in SQL Server attached through the SQL
Server UDL, i return only one record and the record count is set to "-1".
any ideas why the SQL Server is not returning the correct number of records?
(if i remove the "GROUP BY NAME" from the SQL statement, both queries return
the same number of records, as it should...)
--
sc
Mid-State Consultants
scarter@mscon.com