Function Sequence Error

Posted on 2003-03-05
Medium Priority
Last Modified: 2008-03-27

I am facing "Function Sequence Error" while accessing the database through ODBC functions. I know that some where the process of binding the columns, unbinding the columns , opening the cursors etc..,

Can anybody give the information about this "Function Sequence Error" .

Question by:Sekhar_ee
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 23

Accepted Solution

adathelad earned 200 total points
ID: 8081186
here's a couple of excerpts I've found which may shed more light on it:

"Function sequence error" refers to the underlying ODBC calls rather than the actual SQL statement. This error means that order of ODBC calls made in your application is wrong. An ODBC trace will reveal the problem.

Also, a quote from the ODBC Programmer's Reference:
For some ODBC drivers, Commit closes and deletes all open cursors on
all statements associated with the connection and discards all pending

In other words, if you call Commit on a connection while having open
result sets on the connection, the result sets could be closed by the
connection, depending on the ODBC driver you're using.  Any "fetch"
calls on these result sets after the Commit will therefore result in a
"function sequence error".


Expert Comment

ID: 9276104
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 23

Expert Comment

ID: 9278030
Recommend: Points to me for only response
LVL 12

Expert Comment

ID: 10994316
No comment has been added to this question in more than 245 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: adathelad http:#8081186

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question