George1111
July 19th, 2008, 03:05 AM
I want to create a method which will allow me to deploy my application which has code written in both VB6 and VB.Net
I want to be able to work with either Access (Jet) Database or SQL Server 2005 Databases
ie,
VB6 with Access
VB6 with SQL Server 2005
VB.NET with Access
VB.NET with SQL Server 2005
I presume if I write all Data Access using ADO, then I will be compatible with Access and SQL Server 2005
But what about connection strings for the above 4 combinations
Ideally I would have a connection method which will work with all methods
Is this close to the realms of possibility OR do I have to write substantial code to achive the combinations I need
For example, is ODBC the ONLY way to achieve this ? (If it can) or is there some neat way to do this
Thanks for any ideas - it will help with developing a substantial application which can then be deployed with a lot of flexibility
I want to be able to work with either Access (Jet) Database or SQL Server 2005 Databases
ie,
VB6 with Access
VB6 with SQL Server 2005
VB.NET with Access
VB.NET with SQL Server 2005
I presume if I write all Data Access using ADO, then I will be compatible with Access and SQL Server 2005
But what about connection strings for the above 4 combinations
Ideally I would have a connection method which will work with all methods
Is this close to the realms of possibility OR do I have to write substantial code to achive the combinations I need
For example, is ODBC the ONLY way to achieve this ? (If it can) or is there some neat way to do this
Thanks for any ideas - it will help with developing a substantial application which can then be deployed with a lot of flexibility