|
-
Apr 4th, 2005, 12:01 PM
#1
Thread Starter
Frenzied Member
Unexpected Error from the external database Driver (15877)
Hi Guys!
I am having a wiered Problem over here..
I have a program which accesses(read only) a Paradox database which is accessed by another program simultaneously(read/write)..
Now.. on my system.. .(where that simultaneously accessing program is not running) the software runs fine.. but on the user's machine where the paradox is accessed by another program as well... it runs fine most of the time.. but periodically it gives the Error
Unexpected Error from the external database Driver (15877)
Although i have made the program to survive this error and starts accessing the database again after closing and re-opening database connection.. Most of the time this trick also works.. but eventually a point comes.. when closing and re-opening no longer works and the program stucks in a looop of Error and resuming and then error... at last the computer hangs.. and everything becomes a mess...
Now My Question is.;
What would be causing this problem? Simultaneous acccess to the database does not seem to be the issue because i have tested it on my system as well...
My Development Machine is running XP Service Pack2
and the user's machine is running Windows 2000 Professional Service Pack 4
That's really urgent...
Any Ideas?
-
Apr 4th, 2005, 01:14 PM
#2
Re: Unexpected Error from the external database Driver (15877)
moinkhan, In Access you get this same error when you have linked tables to Paradox tables and the length
is greater then 65 characters.
Dont know if that helps much but was just making me think if it had anything to do with querystring length, linked
tables, etc. Or is the version and method of accessing the db are different on the users system from yours.
IE. ADO/ODBC on users and all ADO on yours.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 4th, 2005, 02:12 PM
#3
Thread Starter
Frenzied Member
Re: Unexpected Error from the external database Driver (15877)
 Originally Posted by RobDog888
moinkhan, In Access you get this same error when you have linked tables to Paradox tables and the length
is greater then 65 characters.
Dont know if that helps much but was just making me think if it had anything to do with querystring length, linked
tables, etc. Or is the version and method of accessing the db are different on the users system from yours.
IE. ADO/ODBC on users and all ADO on yours.
hmmm... Thanx rob for your reply...
What do u mean by length is greater than 65 characters
well.. i am not getting this in Access.. but in VB....
Yah... the version of ODBC Driver is different on my machine and on user's machine...but the operating system is also different..
I have beeen searching for a solution for 12 hours continously.. any idea?
-
Apr 4th, 2005, 02:21 PM
#4
Re: Unexpected Error from the external database Driver (15877)
Oh, I was referring to the Linked table path of 65 chars max if this was access with linked tables to paradox.
You say that there is another program that also access this database. Do you know how it connects? I have seen
issue araise from connecting to a db using different connection technologies. So if your system is connecting to
the db using odbc and the users system is using only odbc then there should be no problems, but if the users
system is also having anothe program access the db using ado or ex. it could create issues.
Now can you duplicate the other program accessing the db on your system while you are accessing the db
with your program?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 5th, 2005, 10:17 AM
#5
Thread Starter
Frenzied Member
Re: Unexpected Error from the external database Driver (15877)
 Originally Posted by RobDog888
Oh, I was referring to the Linked table path of 65 chars max if this was access with linked tables to paradox.
You say that there is another program that also access this database. Do you know how it connects? I have seen
issue araise from connecting to a db using different connection technologies. So if your system is connecting to
the db using odbc and the users system is using only odbc then there should be no problems, but if the users
system is also having anothe program access the db using ado or ex. it could create issues.
Now can you duplicate the other program accessing the db on your system while you are accessing the db
with your program?
Hi!!
The program doesn't use odbc to connect to the database,..
Everything was working fine a week ago... i just changed a SQL Query.. and after that... it has become a real mess.. still.. i can get my older exe file to work without error.. really helpless at this point.. 
I tried trick this thing by linking paradox data to Access and then accessing the data through Access... but this returns the same error message with error number 11270....
-
Apr 5th, 2005, 12:39 PM
#6
Re: Unexpected Error from the external database Driver (15877)
If the prevoius version was running fine and all you changed was some queries then there has to be something
in the queries that is causing it to error?
Perhaps you could add some auditing code to track the executing of queries and maybe you can pinpoint it down
to a particular query. In the updated querie(s) di you add a new table source?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 7th, 2005, 04:21 AM
#7
Thread Starter
Frenzied Member
Re: Unexpected Error from the external database Driver (15877)
 Originally Posted by RobDog888
If the prevoius version was running fine and all you changed was some queries then there has to be something
in the queries that is causing it to error?
Perhaps you could add some auditing code to track the executing of queries and maybe you can pinpoint it down
to a particular query. In the updated querie(s) di you add a new table source?
This was the first thing that hit me... I saw all the queries.. see the previous version was
Select A,E0,E1,B,H,J,K from production where A>" & M_GKEY
and i edited it to add two more columns
Select A,E0,E1,B,H,J,K,N,Q from production where A>" & M_GKEY
Well... I also checked the Version of ADO.. in previous version i was using ADO 2.5, and in the newer i am using ADO 2.8.....so now .. i have changed it back to 2.5 again....and till now.. it is working . let's C .. how long
in my point of view; if the version of ADO was the problem.. the program shouldn't have run in first place....
Let me state my problem again..
My program runs fine for number of hours(indefinite) and then starts giving error..... Unexpected error from external database driver.... when i resolved this error(by catching and making my program sleep for 3 seconds and then wake up and retry to connect to the database)....the program ran for longer.. but then it started giving database object not found ......
this is all crazy stuff. .... .
-
Apr 7th, 2005, 12:17 PM
#8
Re: Unexpected Error from the external database Driver (15877)
I feel your pain. I had a similar experience with 2.7 & 2.7 SP1.
I had compiled a program and packaged it with 2.7 on my desktop. Then during deployment at the client's site
I had to make a change to the exe. I recompiled it on my laptop (2.7 SP1) and when I replaced the exe and
tested it gave unexpected class interface errors. 
Didnt realize the same version wasnt backwards compatible.
Good luck on this and I hope it works correctly now
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 13th, 2005, 04:20 AM
#9
Thread Starter
Frenzied Member
Re: Unexpected Error from the external database Driver (15877)
-
Apr 13th, 2005, 10:55 AM
#10
Re: Unexpected Error from the external database Driver (15877)
Cool ,glad you got a workaround, just to be on the safe side you may want to add a delay before the copy is
made to make sure the update process' are complete before you copy the db?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 13th, 2005, 10:57 AM
#11
Thread Starter
Frenzied Member
Re: Unexpected Error from the external database Driver (15877)
 Originally Posted by RobDog888
Cool ,glad you got a workaround, just to be on the safe side you may want to add a delay before the copy is
made to make sure the update process' are complete before you copy the db?
hmmm.. thanx for the suggestion.. but the modified date is change only when the update to the file is committed.
-
Aug 28th, 2020, 02:36 PM
#12
New Member
Re: Unexpected Error from the external database Driver (15877)
I had a similar error, it took me a few days to find the solution. (Visual studio 2019)
the SQL connection works fine, but i couldn't open Paradox files with an oledb connection.
it has something to do with security in the manifest file (in the debug/release folder there is a <projectname>.manifest file.
i solved it the following way:
goto the menu "Project" -> "<Projectname> Properties"
click on the left pane "Security" and disable the checkbox "Enable ClickOne security settings"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|