silver2kgt
Technical User
I have two SQL servers, A and B that have a link server connection to an AS/400.
Server A has SQL 7 and Server B has SQL 2000 and both have an ODBC connection to the same AS/400. The link server for each of these use that ODBC connection to access the data on the AS/400 (not sure why whoever set this up didn't just use a direct connection, but oh well.) The drivers and settings used for these ODBC connections are the same on both servers. I have checked the SQL server settings on both servers and both are setup the same. I have connected to the AS/400 and made sure that what I am querying against does in fact have 379,865 rows.
In query analyzer on Server A I run the following query and I get the expected 379,865 rows.
select FIELD from AS400.AS400.LIBRARYNAME.TABLENAME
This same query on Server B only returns about 3,400 rows.
However, if I do the following query against either server A or B, I get the expected 379,865 rows!
select count(FIELD) from AS400.AS400.LIBRARYNAME.TABLENAME
If anyone has an idea what this might be, I would be most appreciative. Thanks in advance.
Trevor
Server A has SQL 7 and Server B has SQL 2000 and both have an ODBC connection to the same AS/400. The link server for each of these use that ODBC connection to access the data on the AS/400 (not sure why whoever set this up didn't just use a direct connection, but oh well.) The drivers and settings used for these ODBC connections are the same on both servers. I have checked the SQL server settings on both servers and both are setup the same. I have connected to the AS/400 and made sure that what I am querying against does in fact have 379,865 rows.
In query analyzer on Server A I run the following query and I get the expected 379,865 rows.
select FIELD from AS400.AS400.LIBRARYNAME.TABLENAME
This same query on Server B only returns about 3,400 rows.
However, if I do the following query against either server A or B, I get the expected 379,865 rows!
select count(FIELD) from AS400.AS400.LIBRARYNAME.TABLENAME
If anyone has an idea what this might be, I would be most appreciative. Thanks in advance.
Trevor