|
-
Jul 7th, 2005, 10:10 AM
#1
Thread Starter
Fanatic Member
-
Jul 7th, 2005, 07:50 PM
#2
Re: ADODB Custom Wrapper?
It sounds like you have different versions of ADODB on the different machines. One kind of hack way to work arround it is for you to copy the wrapper from another machine in to your bin folder and then reference the wrapper file directly by browsing to it. That has worked for me in the past when dealing with a similiar issue related to different versions of Office. The file in question will have Interop in the title.
-
Jul 7th, 2005, 08:36 PM
#3
Re: ADODB Custom Wrapper?
I know that ADO.NET requires MDAC (Microsoft Data Access Components). I don't know for sure, but I'd guess that using ADO in a .NET app probably requires the same. I've seen a few articles that mention both ADODB and MDAC. I'd suggest getting the latest version of MDAC (2.8 SP1) and installing it on all machines.
-
Jul 7th, 2005, 08:41 PM
#4
Re: ADODB Custom Wrapper?
I have that issue in a project too but I found out its from creating a project with a reference to a older version of mdac
and opening the project on a different system with a newer mdac version.
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 
-
Jul 7th, 2005, 08:44 PM
#5
Re: ADODB Custom Wrapper?
Dump ADODB.... completely..... Use ADO.NET..... which is about as close to "classic" ADO as VB.NET is to VB Classic.
Your problems stem from trying to use a COM component in .NET which isn't 100% fool proof.
My recommendation, read up on using DataReaders, DataSets and DataTables.... convert now & early... it will save you a lot of grief later in development.
Tg
-
Jul 7th, 2005, 11:03 PM
#6
Re: ADODB Custom Wrapper?
I should be able to since my main project has not had the db schema completely developed yet and I only had the
reference to ADODB without any code yet. I need to desperately learn ADO.NET. That is my next priority.
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 
-
Jul 7th, 2005, 11:22 PM
#7
Re: ADODB Custom Wrapper?
I agree that ADO needs to go if at all possible. ADO.NET is easy to use and cutting the VB6 apron strings should be done ASAP. No sweat for those with flashy (figuratively and literally) avatars.
-
Jul 7th, 2005, 11:27 PM
#8
Re: ADODB Custom Wrapper?
I new I would get some flack by posting that. 
Anyone care to teach us the basics? 
Whats a ...
Dataset?
DataReader?
DataAdapter?
Etc. as compared to ADODB.
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 
-
Jul 7th, 2005, 11:45 PM
#9
Re: ADODB Custom Wrapper?
The DataSet is a little database held locally. It contains DataTables and, optionally DataRelations. I think those names speak for themselves. The DataSet allows you to store data and operate on it disconnected from the original source.
The DataReader provides read-only, forward-only access to the result set of a query. It allows you to read data from that result set one row at a time from beginning to end. The DataReader is more efficient at retrieving data and is a good choice when data is simply going to be displayed or used, rather than edited and posted back.
The DataAdapter is the link between the DataSet (or an individual DataTable) and the database. It allows you to retrieve and post back data in a batch fashion. It is less efficient than the DataReader at reading data but provides other functionality like filling a DataTable, including schema, with one line of code. It also allows all changes to a table, including deletions, insertions and updates, to be committed to the database in a batch with one line of code (once all the appropriate SQL commands have been written, of course).
-
Jul 8th, 2005, 12:01 AM
#10
Re: ADODB Custom Wrapper?
So basically all the data flows through the DataSet then depending on your needs you can use either the DataReader or Adapter
to read or manipulate the data. 
How about the connection object?
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 
-
Jul 8th, 2005, 12:14 AM
#11
Re: ADODB Custom Wrapper?
 Originally Posted by RobDog888
So basically all the data flows through the DataSet then depending on your needs you can use either the DataReader or Adapter
to read or manipulate the data. 
How about the connection object?
Not so. The DataSet is a convenient way to store data. The DataReader will allow you to retrieve data and you can do with it what you will. You can put it in a DataTable if you want but you don't have to. The DataAdapter retrieves the data and places it into a DataTable for you, then it will commit any changes to that DataTable back to the database for you also.
The Connection knows all the details about the database you are connectiong to through its ConnectionString property. Both DataReaders and DataAdapters use Command objects to determine how they should interact with the database. A Command is basically an SQL statement and Connection object.
-
Jul 8th, 2005, 12:22 AM
#12
Re: ADODB Custom Wrapper?
Ok, I know Command Objects from ADODB and it sounds like they are the same.
So then all the dataobjects are independant of each other depending on what you want to do?
Sorry for hijacking the thread, simonm.
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 
-
Jul 8th, 2005, 12:43 AM
#13
Re: ADODB Custom Wrapper?
A Connection encapsulates a data source.
A Command has a Connection and some SQL code.
Calling ExecuteReader on a Command returns a DataReader.
A DataAdapter has up to four Commands.
A DataAdapter fills and updates a DataTable or DataSet.
A DataSet can contain multiple DataTables.
A DataView provides filtering and sorting for a DataTable.
-
Jul 8th, 2005, 12:50 AM
#14
Re: ADODB Custom Wrapper?
Man, why did they have to go and complicate things? I'm sure its because of improvements but
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 
-
Jul 8th, 2005, 02:48 AM
#15
Thread Starter
Fanatic Member
Re: ADODB Custom Wrapper?
I am using ADO.NET where I can but unfortunately, I have to reference a few vb6 DLL's that use ADODB as well because we haven't migrated everything yet.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Jul 8th, 2005, 02:57 AM
#16
Re: ADODB Custom Wrapper?
 Originally Posted by simonm
I am using ADO.NET where I can but unfortunately, I have to reference a few vb6 DLL's that use ADODB as well because we haven't migrated everything yet.
Oh... you're still here? Let me combine two of my previous posts to crystalise my point of view on this matter. Use ADO.NET whenever and wherever possible, as you are. If you must use ADO for compatibility, I would suggest upgrading all machines to the latest MDAC version if possible. It is possible to create an installation requirement for a particular version of MDAC, and also to include the required MDAC version as part of your setup.
-
Jul 8th, 2005, 03:00 AM
#17
Thread Starter
Fanatic Member
Re: ADODB Custom Wrapper?
When I try to install the latest version of MDAC, I get the message "The setup does not support installing on this operating system". Incidentally, my operating system is Windows XP professional.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Jul 8th, 2005, 03:23 AM
#18
Re: ADODB Custom Wrapper?
The download page for MDAC 2.8 SP1 (version 2.81) says
This redistributable installer for the MDAC 2.8 SP1 release installs the same Data Access components as Microsoft Windows XP SP2.
Supported Operating Systems: Windows 2000; Windows 98; Windows ME; Windows NT
The download page for MDAC 2.8 (version 2.80) says
This redistributable installer for the MDAC 2.8 release installs the same Data Access components as Microsoft Windows Server 2003.
Supported Operating Systems: Windows 2000; Windows 98; Windows ME; Windows NT; Windows XP
Are you confused? I am. It sounds like WinXPSP2 already has MDAC 2.81 installed, but Win2003Server has the older MDAC 2.80. Are all your machines running XPSP2?
-
Jul 8th, 2005, 03:29 AM
#19
Thread Starter
Fanatic Member
Re: ADODB Custom Wrapper?
Well, there you have it. All our machines have XP service pack 2 and yet my ADO2.6 is incompatible with everyone elses!
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Jul 8th, 2005, 03:38 AM
#20
Re: ADODB Custom Wrapper?
Have other machines perhaps had VB6 installed that yours hasn't, which may have installed an older version of ADO or something like that? You haven't waved any cursed chickens' feet around have you? Something's going on and I insist on knowing the hell it is, damn it!
-
Jul 8th, 2005, 03:46 AM
#21
Thread Starter
Fanatic Member
Re: ADODB Custom Wrapper?
All our machines have both VB6 and VB.NET 2003.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Jul 8th, 2005, 04:00 AM
#22
Re: ADODB Custom Wrapper?
What about the chickens' feet?
-
Jul 8th, 2005, 10:29 AM
#23
Re: ADODB Custom Wrapper?
Did you run the Component Checker on the systems? It will tell you the version of MDAC on the system. If you dont have it,
its a free download from MS.
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 
-
Jul 11th, 2005, 02:56 AM
#24
Thread Starter
Fanatic Member
Re: ADODB Custom Wrapper?
I ran the component checker and all our machines have an identical version of MDAC: 2.1 SP1 ON Windows XP SP2...
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Jul 11th, 2005, 10:59 AM
#25
Re: ADODB Custom Wrapper?
2.1? XP SP-2 comes with MDAC 2.8. You need to determine if the systems all have 2.8 if that what you
compiled your program on.
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 
-
Jul 12th, 2005, 02:35 AM
#26
Thread Starter
Fanatic Member
Re: ADODB Custom Wrapper?
Yes, yes. We all have precisely the same version.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
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
|