Re: connect to db in codes
- From: "Mac Davis" <newsgroups@xxxxxxxxxxxxxx>
- Date: Sun, 21 May 2006 13:44:01 -0400
Keith,
Let's assume that you want an Ado connection named conn
You can either have a component in a form or datamodule named conn and
manage its properties programattically
begin
conn.connectionstring := 'your connection string';
conn.open;
end;
or
You can create your component programattically and then manage its
properties
Var
conn : TADOConnection
begin
conn := TADOConnection.create (Application)
conn.connectionstring := 'your connection string';
conn.open;
end;
Regards,
Mac
"Keith" <support@xxxxxxxxxxxxx> wrote in message
news:44707633@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Is it possible to connect to access or sql server purely in codes not
using components?
thanks
.
- References:
- connect to db in codes
- From: Keith
- connect to db in codes
- Prev by Date: Re: connect to db in codes
- Next by Date: Re: connect to db in codes
- Previous by thread: Re: connect to db in codes
- Next by thread: Re: connect to db in codes
- Index(es):