TUniQuery only returns 1 row
-
kstantonnw
- Posts: 13
- Joined: Mon 25 Feb 2008 17:22
- Location: Oregon
TUniQuery only returns 1 row
Greetings.
I just purchased UniDAC to work with an ODBC driver for the AS/400 replacing the current BDE connection and query components.
In a very simple test app, I use the same exact SQL but TUniQuery only returns 1 row.
Environment:
Windows XP all updates
Delphi 6 all updates
UniDAC 5.02
Here is the SQL, very basic:
SELECT CRORDR, CRAMT, CRCUST, CRMDAT, CRRDAT, "CRAR$", CRPOST,
CRPDAT
FROM ARREC Arrec
Here is the TUniQuery:
object qry: TUniQuery
Connection = UniConnection1
Transaction = UniTransaction1
UpdateTransaction = UniTransaction1
SQL.Strings = (
'SELECT CRORDR, CRAMT, CRCUST, CRMDAT, CRRDAT, "CRAR$", CRPOST, '
'CRPDAT'
'FROM ARREC Arrec')
FetchRows = 100
Left = 88
Top = 16
end
Connection Component:
object UniConnection1: TUniConnection
ProviderName = 'ODBC'
SpecificOptions.Strings = (
'ODBC.DSNType=ntName')
DefaultTransaction = UniTransaction1
Username = 'KEVIN40'
Password = '**************'
Server = 'FCTG400'
ConnectDialog = UniConnectDialog1
LoginPrompt = False
Left = 24
Top = 16
end
Transaction Component:
object UniTransaction1: TUniTransaction
DefaultConnection = UniConnection1
Left = 56
Top = 16
end
Any help will be GREATLY appreciated!
Kevin
I just purchased UniDAC to work with an ODBC driver for the AS/400 replacing the current BDE connection and query components.
In a very simple test app, I use the same exact SQL but TUniQuery only returns 1 row.
Environment:
Windows XP all updates
Delphi 6 all updates
UniDAC 5.02
Here is the SQL, very basic:
SELECT CRORDR, CRAMT, CRCUST, CRMDAT, CRRDAT, "CRAR$", CRPOST,
CRPDAT
FROM ARREC Arrec
Here is the TUniQuery:
object qry: TUniQuery
Connection = UniConnection1
Transaction = UniTransaction1
UpdateTransaction = UniTransaction1
SQL.Strings = (
'SELECT CRORDR, CRAMT, CRCUST, CRMDAT, CRRDAT, "CRAR$", CRPOST, '
'CRPDAT'
'FROM ARREC Arrec')
FetchRows = 100
Left = 88
Top = 16
end
Connection Component:
object UniConnection1: TUniConnection
ProviderName = 'ODBC'
SpecificOptions.Strings = (
'ODBC.DSNType=ntName')
DefaultTransaction = UniTransaction1
Username = 'KEVIN40'
Password = '**************'
Server = 'FCTG400'
ConnectDialog = UniConnectDialog1
LoginPrompt = False
Left = 24
Top = 16
end
Transaction Component:
object UniTransaction1: TUniTransaction
DefaultConnection = UniConnection1
Left = 56
Top = 16
end
Any help will be GREATLY appreciated!
Kevin
Re: TUniQuery only returns 1 row
Hello,
Please specify the exact versions of the DB server and ODBC driver you are using.
Please specify the exact versions of the DB server and ODBC driver you are using.
-
kstantonnw
- Posts: 13
- Joined: Mon 25 Feb 2008 17:22
- Location: Oregon
Re: TUniQuery only returns 1 row
The database resides on an IBM AS/400.
ODBC Driver: Client Access Driver (32-bit)
This is part of the installation for IBM i Access for Windows 7.1.
I hope this helps!
Kevin
ODBC Driver: Client Access Driver (32-bit)
This is part of the installation for IBM i Access for Windows 7.1.
I hope this helps!
Kevin
Re: TUniQuery only returns 1 row
Hello,
Please specify the name and the versions of the server you are working with
Please specify the name and the versions of the server you are working with
-
kstantonnw
- Posts: 13
- Joined: Mon 25 Feb 2008 17:22
- Location: Oregon
Re: TUniQuery only returns 1 row
I'm not sure where to get that.
I'm assuming by "server" you're referring to the AS/400?
I'm assuming by "server" you're referring to the AS/400?
Re: TUniQuery only returns 1 row
Hello,
I meant DB server
I meant DB server
-
kstantonnw
- Posts: 13
- Joined: Mon 25 Feb 2008 17:22
- Location: Oregon
Re: TUniQuery only returns 1 row
Greetings,
Sorry for the delayed reply. I have found an alternative route that worked the first time out of the box.
Best Regards,
Kevin
Sorry for the delayed reply. I have found an alternative route that worked the first time out of the box.
Best Regards,
Kevin
Re: TUniQuery only returns 1 row
Hello,
If you have any other questions, feel free to contact us.
If you have any other questions, feel free to contact us.
Re: TUniQuery only returns 1 row
I am having the same problem with my iSeries (AS/400) I'm only getting 1 row for my query. I would really appreciate any help I can get on this.
Thanks
Jody
Thanks
Jody
Re: TUniQuery only returns 1 row
If you set prefetch=0 in your DSN string it seems to fetch all the rows.
Re: TUniQuery only returns 1 row
Hello,
Please specify your ODBC driver version. We have checked the behavior on the version 10.01.200.238 and, independently on the value set in the prefetch parameter, UniDAC returns the correct number of strings.
P.S. There is no such parameter as prefetch in the ODBC settings of the driver version I have specified, we pasted this parameter directly to the connection string.
Please specify your ODBC driver version. We have checked the behavior on the version 10.01.200.238 and, independently on the value set in the prefetch parameter, UniDAC returns the correct number of strings.
P.S. There is no such parameter as prefetch in the ODBC settings of the driver version I have specified, we pasted this parameter directly to the connection string.
Re: TUniQuery only returns 1 row
Version 13.00.01.00
Re: TUniQuery only returns 1 row
Hello,
Please send us a link, where we can download the specified version of the driver to study the issue.
Please send us a link, where we can download the specified version of the driver to study the issue.
Re: TUniQuery only returns 1 row
@jstone...jstone wrote:If you set prefetch=0 in your DSN string it seems to fetch all the rows.
Where can i find this Parameter?
I've tried to add this parameter to the Connection String for my AS400, but i've got an Exception that this parameter doesn't exists/is allowed!
Re: TUniQuery only returns 1 row
This parameter is set in ODBC Data Source Administrator when creating DSN