Article View: borland.public.delphi.database.dotnet
Article #109Re: BDP problem
From: Bob Swart
Date: Tue, 29 Aug 2006 12:20
Date: Tue, 29 Aug 2006 12:20
36 lines
2536 bytes
2536 bytes
Hi Guido,
> i have an asp net project and i put a BDPConnection setting the connection
> str: that ok !
> when i put a BDPDataAdapter and i try to set a connection :
What do you want to connect? The BdpConnection can act as Connection
property for the SelectCommand, InsertCommand, DeleteCommand and/or
UpdateCommand of the BdpDataAdapter, but you have to create an instance
of these before you can assign their Connection property.
> 'Object reference not set to an instance of an object ' ERROR
Otherwise you might indeed get the above error (the BdpCommand is not
yet assigned)
Just select the BdpDataAdapter (click on it) and then click on the
"Configure DataAdapter" link at the bottom of the Object Inspector. This
will start the BdpDataAdapter Configuation Dialog that you can use to
create the Select, Insert, Update and Delete commands (just check the
checkbox of the commands you want). Note that the BdpConnection
component will automatically be selected as the Connection property
value for all BdpCommands that you use here (if there are multiple
available BdpConnection components you can use the drop-down combobox to
select one).
For more info and a screenshot, see the "Configure Data Adapter" section
of http://www.drbob42.com/examines/examin52.htm
Groetjes,
Bob Swart
--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
New Delphi 2006 Courseware e-books at http://www.eBob42.com/courseware
Technical Details
Message-ID:
<44F430F0.2000507@chello.nl>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44f3235a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,e566cc91a1f67169 X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <44F430F0.2000507@chello.nl> Date: Tue, 29 Aug 2006 14:20:00 +0200 From: Bob Swart <b.swart@chello.nl> Organization: Bob Swart Training & Consultancy (eBob42) User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: borland.public.delphi.database.dotnet Subject: Re: BDP problem References: <44f3235a$1@newsgroups.borland.com> In-Reply-To: <44f3235a$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.187.74.50 X-Trace: newsgroups.borland.com 1156854003 212.187.74.50 (29 Aug 2006 05:20:03 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail