Re: Changing linked SQL Server tables in code
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Mon, 23 Jun 2008 18:33:10 -0500
Rich P wrote:
Hi Bruce,
Relinking ODBC tables in code is kind of a pain. This is a downside
of ODBC. If the tables were purely static then ODBC is an easy
solution, but whenever you need to make something even just a little
bit mroe dynamic - ODBC becomes a real hassel.
Please elaborate. I never have any difficulty changing ODBC links. Loop
through the objects, set the connect property. What is difficult about
that?
ADO is a much easier
option to go with as far as using Code for manipulating data from Sql
Server Tables. With ODBC you have to use a lot of API code.
API code? No idea what you mean here.
With ADO
you just make a reference to the Microsoft ActiveX DataObjects
library (2.5 or higher) and you can find tons of sample of code on
the Net.
Or just set the connect property with ODBC. Doesn't even require a
reference.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: Changing linked SQL Server tables in code
- From: Rich P
- Re: Changing linked SQL Server tables in code
- References:
- Changing linked SQL Server tables in code
- From: brucedodds
- Re: Changing linked SQL Server tables in code
- From: Rich P
- Changing linked SQL Server tables in code
- Prev by Date: Re: Changing linked SQL Server tables in code
- Next by Date: Access 2007 Tabbed Forms Question
- Previous by thread: Re: Changing linked SQL Server tables in code
- Next by thread: Re: Changing linked SQL Server tables in code
- Index(es):
Relevant Pages
|