perfectchaoss
Programmer
Hello,
I have a query that i thought should be pretty straitforward:
SELECT *
FROM SEASIA.RUMBA400.FMSV3DB05.ARCUST CustomerList
33 records
(it is querying from a linked AS400 server)
The wierd think is there are 1500+ rows in the table on the AS400 and the query only returns 35 of them. The even wierder thing is... The more columns I take off the more records i get
SELECT CMNUMN, CMNAM1, CMADDR, CMPROV, CMPOST, CMAREA
'returns about 400 records
SELECT CMNUMN, CMNAME1
'returns ABOUT 1200 records
SELECT CMNUMN
returns all 1526 records
Another odd thing about the situation is that if i specify a record that was not returned in the one of the queries it will be displayed:
SELECT *
FROM SEASIA.RUMBA400.FMSV3DB05.ARCUST CustomerList
WHERE CMNUMN = 1896
returns a row that is not included in the query
SELECT *
FROM SEASIA.RUMBA400.FMSV3DB05.ARCUST CustomerList
Is there something in SQL that limits the total size or charecters in a query from a linked server? I spoke with our AS400 administrator and he told me that was the problem. If so would I change it?
Thanks,
JF
I have a query that i thought should be pretty straitforward:
SELECT *
FROM SEASIA.RUMBA400.FMSV3DB05.ARCUST CustomerList
33 records
(it is querying from a linked AS400 server)
The wierd think is there are 1500+ rows in the table on the AS400 and the query only returns 35 of them. The even wierder thing is... The more columns I take off the more records i get
SELECT CMNUMN, CMNAM1, CMADDR, CMPROV, CMPOST, CMAREA
'returns about 400 records
SELECT CMNUMN, CMNAME1
'returns ABOUT 1200 records
SELECT CMNUMN
returns all 1526 records
Another odd thing about the situation is that if i specify a record that was not returned in the one of the queries it will be displayed:
SELECT *
FROM SEASIA.RUMBA400.FMSV3DB05.ARCUST CustomerList
WHERE CMNUMN = 1896
returns a row that is not included in the query
SELECT *
FROM SEASIA.RUMBA400.FMSV3DB05.ARCUST CustomerList
Is there something in SQL that limits the total size or charecters in a query from a linked server? I spoke with our AS400 administrator and he told me that was the problem. If so would I change it?
Thanks,
JF