If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > error : -2147467259 - Unspecified error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-03, 08:47
rodeo rodeo is offline
Registered User
 
Join Date: Jan 2003
Posts: 15
Red face error : -2147467259 - Unspecified error

we had this very dirty problem last week, which I want to share with you guys.

We have this VB program that, on a daily basis, downloads shipments and bookings information from our common AS400 system into diverse local PC databases. This info is linked to user-entered forecast, which is uploaded every evening for processing on the AS400.

This program (that has ran for several years) holds a routine which reads an AS400 file holding our financial calendar. The routine checks if next year's calendar is set up there, and if so, downloads it into Access. This routine uses an ODBC-linked table in the Access database. (We can't use the IBMDA400 provider, since the Packed AS400 fields are EBCDIC, and translation to ANSI/ASCII ain't supported there).

Last week, some new functionality was added to the updates program, and I recompiled it. Because I wanted some parallel runs, I named the program 2003_updates.exe.

And then the problem begun : the calendar-routine suddenly started failing, returning the error stated in the title of this thread. We started checking the ODBC drivers, the Client ACCESS (our emulater package) setup, the ADO and DAO versions...

Then, we found out that, on my machine, where I had written and tested the source, the program failed as well.
I started debugging the source, only to find out it worked smoothly in debug. So we started adding pointers etc. Then compiled as test.exe. Eureka, it ran. So we copied that new exe to the remote location. AND! It ran ok!

Where-upon I renamed it in the remote location, to 2003_updates.exe. AND! It failed again. Copied it back over to my machine. It failed! So I renamed the exe into test.exe, and it ran!

Then, we started renaming other applications, and found out that any app, using the MSDASQL provider, or ODBC in general, to connect to our AS400 system, would fail if the first char of its exe name was changed into a numeric character!!!

So, did or didn't we find some kind of bug?
__________________
The further away I get from the things I care about,
The less I care about how much further away I get...
Reply With Quote
  #2 (permalink)  
Old 01-27-03, 14:46
Bruce A. Baasch Bruce A. Baasch is offline
Registered User
 
Join Date: Nov 2002
Location: Ohio
Posts: 90
Hi Rodeo,

All the IBM shops I've worked in require program names to begin with at least one letter.

Looks like you found out why!!!

Good luck,
__________________
Bruce Baasch
Reply With Quote
  #3 (permalink)  
Old 04-12-03, 18:44
mfiore mfiore is offline
Registered User
 
Join Date: Apr 2003
Posts: 1
Re: error : -2147467259 - Unspecified error

The bug is in access/vb. I believe it happens when you cannot successfully open a database and then you try and insert data into a database that has not been successfully opened. The only way I have been able to get the code to work again is rebooting the system. The error condition occurs in VB and some how it appears to be locking the databse. Once this condition occurs you cannot open the databse with the odbc code until reboot.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On