[unixODBC-dev] I am getting "Function Sequence Error" When I try to do SQLDescribeParam() using my native ODBC

Nick Gorham nick at lurcher.org
Thu Nov 8 13:57:43 GMT 2012

On 08/11/12 13:26, Martin J. Evans wrote:
> On 08/11/12 12:24, Aniruddha Kulkarni wrote:
>> Hi,
>> I am stuck with some issue here. I am trying to do certain operations
>> on back-end using my native ODBC driver however when I call
>> SQLDescribeParam() through my application it gives me an error as -
>> SQLDescribeParam -> Rc = SQL_ERROR, Msg = [unixODBC][Driver
>> Manager]Function sequence error
> The driver manager issued the function sequence error as can be seen 
> by "[unixODBC][Driver Manager]". If the driver reported the issue, it 
> would be named in [] at the right.

Just checked the statement state transition docs.

A SQLDescribeParam in S4 (Executed) will return a HY010, so its doing 
what it should, you need to call the describe before the execute (S2 or S3)



More information about the unixODBC-dev mailing list