Re: BDE to ADO
From: Jeremy Collins (jd.collins_at_ntlworld-not.com)
Date: 07/30/04
- Next message: Jeremy Collins: "Re: Help HOW to Connecting with DTSPackage In TADOConnection?"
- Previous message: Daryl: "Re: help with sql"
- In reply to: Sam G.: "BDE to ADO"
- Next in thread: Sam G.: "Re: BDE to ADO"
- Reply: Sam G.: "Re: BDE to ADO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 09:17:06 +0100
Sam G. wrote:
> Hi,
> I am somewhat confused regarding defining ADO connections. I am moving an
> app from BDE to ADO. With BDE I do not have to code server and database
> information in the app. I could use BDE Administrator or and ODBC data
> source.
>
> I have started to understand ADO components but is there a way to define the
> database connection outside of the application similar to the BDE admin
> tool. Do I use the ODBC management tool and define ODBC data sources?
Avoid ODBC, it adds an extra layer which impedes performace
and brings its own problems.
If you want to store the connection info outside of the app,
create a data link file. Just create new text file, and change
the extension to "UDL". Double-click it to set the connection
properties.
The connection string for your ADO connection can simply
be "FILE NAME=your_data_link_file.udl;", and the connection
will read the info from the file.
You can also build a connection string at runtime based on
user input (opening an Access file; selecting an SQL server
etc etc).
> Is there an ADO Administration Tool that comes with Windows (and what
> versions).
No, ADO is a data access layer and database admin is done with
the tools that come with your database (SQL Server, Access,
Oracle etc).
-- jc Remove the -not from email
- Next message: Jeremy Collins: "Re: Help HOW to Connecting with DTSPackage In TADOConnection?"
- Previous message: Daryl: "Re: help with sql"
- In reply to: Sam G.: "BDE to ADO"
- Next in thread: Sam G.: "Re: BDE to ADO"
- Reply: Sam G.: "Re: BDE to ADO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|