SQLBindParameter is working fine but SQLExecute gives error in Windows 2008 Server 64bit.

Posted by rajugkgp on Stack Overflow See other posts from Stack Overflow or by rajugkgp
Published on 2010-04-26T14:27:06Z Indexed on 2010/05/06 1:58 UTC
Read the original article Hit count: 200

Filed under:

Dear All,

I am migrating my application from 32bit(Windows 2003 Server) to 64bit (Windows 2008 Server R2).I am getting the following while trying to execute a SQL command

Encountered ODBC error -1: S1010, 0, [Microsoft][ODBC Driver Manager] Function sequence error .

Basically internal function call is SQLExecute() function call. This works perfectly for Windows 2003 Server 32bit. I tried the command execute at the background from the command prompt and it is working.

Any help or suggestion would be very much appreciated.

I checked the squence of call.We have two consecutive SQLBindParameter function call and then we call SQLExecute. Is this sequence incorrect in case of 64bit? I also checked the return code given by SQLExecute which is 99.

Any pointers or suggestions would be very helpful. The above sequence is working fine with 32bit Windows.

Thanks in advance.

-R

© Stack Overflow or respective owner

Related posts about Windows