473,409 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Error: [IBM][CLI Driver] CLI0125E Function sequence error. SQLSTATE=S1010 while using ADO

PA
Hi All,

Thanks for your attention..I appreciate that.

-----Problem description -----------Start----------------------

Database : DB2 UDB 8.2 on Windows 2003
Client: VB6/ADO 2.7 on Windows 2003

1) I am opening a ADO 2.7 recordset with following settings

SQL Source : "select * from <<sometable>>" //
<<sometable>>
has a PK
CursorLocation : adUseClient
CursorType : KeySet
LockType : BatchOptimistic or Optimistic
UpdateMethod : Update() or UpdateBatch()

2) After opening the recordset
2.1) Add a record using AddNew method
2.2) Assign Values
2.3) Call Update Or UpdateBatch()
2.4) I can see the recordcount incremented by 1 ...
2.5) I close the recordset
2.6) I assign Nothing to RecordSet.Active Connection property.

3) I Go in command Editor and tried to see my added record using
"select *
from <<sometable>>" and the Command Editor times out
with following error : Error: [IBM][CLI Driver] CLI0125E Function
sequence
error. SQLSTATE=S1010

4) I now must stop and start db2 service to execute "select * from
<<sometable>>" successfully again..however record added in step 2 is
not
there.

-----Problem description -----------END----------------------

My Research :
-----------------------
I tried DB2 documentation and S1010 does not exist in db2 documentation
CLI0125E has very general message that sequence of function call is
wrong.

Anyway I tried more on internet and following interesting
cases/suggested
solutions ...though nothing are recent and deal with UDB 8.2 and
nothing
worked in my case

1) changing CURSORHOLD property to 0. Db2 documentation explanation
makes
sense of this solution that by default all cursor open with Db2 kept
open
until Rolled back. Setting CURSORHOLD to 0 will change this behavior. I
did
that but no change

2) Set Autocommit to False ..tried with Both AutoCommit to true and
false
while CursorHOLD was set to 0 ..did not work.

3) Use IBM OLEDB driver or better still use MS OLE DB provider for ODBC
driver...tried that and did not worked.

Please help.

-TIA

Nov 12 '05 #1
2 12852
PA wrote:
Hi All,

Thanks for your attention..I appreciate that.

-----Problem description -----------Start----------------------

Database : DB2 UDB 8.2 on Windows 2003
Client: VB6/ADO 2.7 on Windows 2003

1) I am opening a ADO 2.7 recordset with following settings

SQL Source : "select * from <<sometable>>" //
<<sometable>>
has a PK
CursorLocation : adUseClient
CursorType : KeySet
LockType : BatchOptimistic or Optimistic
UpdateMethod : Update() or UpdateBatch()

2) After opening the recordset
2.1) Add a record using AddNew method
2.2) Assign Values
2.3) Call Update Or UpdateBatch()
2.4) I can see the recordcount incremented by 1 ...
2.5) I close the recordset
2.6) I assign Nothing to RecordSet.Active Connection property.

3) I Go in command Editor and tried to see my added record using
"select *
from <<sometable>>" and the Command Editor times out
with following error : Error: [IBM][CLI Driver] CLI0125E Function
sequence
error. SQLSTATE=S1010

4) I now must stop and start db2 service to execute "select * from
<<sometable>>" successfully again..however record added in step 2 is
not
there.

-----Problem description -----------END----------------------

My Research :
-----------------------
I tried DB2 documentation and S1010 does not exist in db2 documentation
CLI0125E has very general message that sequence of function call is
wrong.

Anyway I tried more on internet and following interesting
cases/suggested
solutions ...though nothing are recent and deal with UDB 8.2 and
nothing
worked in my case

1) changing CURSORHOLD property to 0. Db2 documentation explanation
makes
sense of this solution that by default all cursor open with Db2 kept
open
until Rolled back. Setting CURSORHOLD to 0 will change this behavior. I
did
that but no change

2) Set Autocommit to False ..tried with Both AutoCommit to true and
false
while CursorHOLD was set to 0 ..did not work.

3) Use IBM OLEDB driver or better still use MS OLE DB provider for ODBC
driver...tried that and did not worked.

Please help.

-TIA


Post a smallest complete sample code illustrating this problem - or capture and
post CLI trace.

Jan M. Nelken
Nov 12 '05 #2
PA
Hi.
I am posting the CLI trace here...now I am facing the same problem but
at a different time. Initially My opening ADO recordset was successful
step 2.0...now even that doesnt work and I get the same problem ... I
also observed that this time..db2 was unable to open the recordset
usng my requested cursor type which was keyset..the CLI trace describe
this problem too.. I am only posting relevent SQL_ERROR traces and
avoiding SQL_SUCCESS

=====================CLI traces start=====================

SQLSetStmtAttrW( hStmt=1:1, fOption=Unknown value 1227,
pvParam=&00000001, uiStrLen=-6 )

SQLSetStmtAttrW( )
<--- SQL_ERROR
// I dont know what this is...somehow db2 is unable to retrieve value
for some option 1227
-----------------------------------------------------------------
SQLSetStmtAttrW( hStmt=1:1, fOption=Unknown value 1228,
pvParam=&00000001, uiStrLen=-6 )
( Unretrieved error message="[IBM][CLI Driver] CLI0133E Option type
out of range. SQLSTATE=S1092" )

SQLSetStmtAttrW( )
<--- SQL_ERROR

SQLGetStmtAttrW( hStmt=1:1, fOption=SQL_ATTR_CURSOR_TYPE,
pvParam=&0012ed38, cbParamMax=-5, pcbParam=<NULL pointer> )
( Unretrieved error message="[IBM][CLI Driver] CLI0133E Option type
out of range. SQLSTATE=S1092" )

// I also dont know what this is...somehow db2 is unable to retrieve
value for some option 1228

-----------------------------------------------------------------

SQLExecDirectW( hStmt=1:1, pszSqlStr="Select * from ", cbSqlStr=29 )
( StmtOut="Select * from ADE_RULE_GROUPS" )
( Package="SYSSN200 ", Section=4 )
( Requested Cursor Attributes=1 )
( Reply Cursor Attributes=524296 )
( Actual Cursor Attributes=524297 )

// This is interesting ...see how the requested cursor (1=keyset) is
different from actual cursor (static)
-------------------------------------------------------------------------

SQLExtendedFetch( hStmt=1:1, fFetchType=SQL_FETCH_NEXT, iRow=0,
pcRow=&0012eb28, rgfRowStatus=&02ded720 )

SQLExtendedFetch( )
<--- SQL_ERROR

SQLGetDiagRecW( fHandleType=SQL_HANDLE_STMT, hHandle=1:1, iRecNumber=1,
pszSqlState=&0012eacc, pfNativeError=&0012e6c0, pszErrorMsg=&0012e6cc,
cbErrorMsgMax=512, pcbErrorMsg=&0012e6b8 )
( iRowNumber=-2, iColumnNumber=-2 )

// Extended fetch failing...

=====================CLI traces END=====================

-TIA

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rwalker | last post by:
Error number 429 - COM object with CLSID {000209F0-0000-0000-C000-000000000046} is either not valid or not registered. Intermittent occurance of this error. Using Word.Global to run word macro...
7
by: Abhi | last post by:
Hi all, I am using .net for C++ and I would like to write some variable values to some files. I will be using that file in many member functions of the class. So I declared the file variable...
3
by: StephenRichter | last post by:
I have installed the trial of db2 enterprise server on my w2k PC. Have also installed fix pack 8 of that product. I am using it to connect from an asp.net web page to an IBM as400. the 400 is...
3
by: bb | last post by:
I have a windows network device driver written in c++ and a user interface im porting to c#, my problem is i dont seem to be getting notified of the event calls from the driver to the c# app im...
1
by: ns2k | last post by:
I add reference office.dll and Microsoft Office Excel Component to my project and use : --------------------------------------- Dim App As Excel.Application, BarName as String ... Dim Bar As...
11
by: Frankie | last post by:
Hello: New user here...first post to group. I'm getting an SQL syntax error when I try to run the following query: $query = sprintf("SELECT itemNumber, entryDate, modifyDate, thumbnailURL,...
1
by: sck10 | last post by:
Hello, I am calling a function using vb and want to convert it to c#. When moving from vb 1.1 to vb 2.0, I can use the following: text='<%# AddBlankRowMenu(Eval("strMenuType")) %>' to call the...
0
by: mike1402 | last post by:
Hi ! I get the error below sometimes when retrieving a big amount of data using Datadapter.Fill(dataset,"table"). But when I send the command Fill again, there is no error. Is it a fault of...
0
by: sa6113 | last post by:
I am using this code to connect to a windows machine using paramiko, I have installed sshd on the machine and it works properly: sock.connect((hostname, port)) t = paramiko.Transport(sock)...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.