Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

Strange S1010 function sequence error problem with DB2 V8 and Windows app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tommydkat@gmail.com - 14 Feb 2006 21:29 GMT
Hi!  I'm updating a Windows application that we develop that uses a DB2
database.  We switched from using Microsoft Developer Studio 6 to
Visual Studio .Net 2003 to build our app and since that switch, we've
been getting a function sequence error with this SQLSTATE:

State:S1010,Native:0,Origin:[Microsoft][ODBC Driver Manager]

Here is a sample query we're running that generates the error

UPDATE TOM.USERS SET TYPE=TYPE WHERE 1 = 0

The strange part is the Microsoft ODBC driver manager is reporting the
error even though we're using the IBM ODBC driver.  Any ideas on where
to start troubleshooting this?

Thanks!

Peace...
Knut Stolze - 15 Feb 2006 07:31 GMT
> Hi!  I'm updating a Windows application that we develop that uses a DB2
> database.  We switched from using Microsoft Developer Studio 6 to
> Visual Studio .Net 2003 to build our app and since that switch, we've
> been getting a function sequence error with this SQLSTATE:
>
> State:S1010,Native:0,Origin:[Microsoft][ODBC Driver Manager]

You might want to consider using the DB2 CLI driver.  From what we read here
once in a while, the MS driver shows some strange problems once in a while.
If the DB2 CLI driver is not an option, you should ask your question in a
MS newsgroup.

> The strange part is the Microsoft ODBC driver manager is reporting the
> error even though we're using the IBM ODBC driver.  Any ideas on where
> to start troubleshooting this?

If it says MS ODBC driver, then you are not using the IBM driver.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

tommydkat@gmail.com - 23 Feb 2006 18:52 GMT
Well, I've got this problem figured out.  It wasn't the Microsoft
driver at all.  It was a change to the MFC CDatabase::ExecuteSQL()
function.  In DevStudio 6, it didn't throw a CDBException when a query
returned an empty result set.  In Visual Studio .net 2003 it does.

Peace...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.