🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1337

Re: Off-line data set

#1337
From: Viatcheslav V. Vassiliev
Date: Mon, 30 Aug 2004 06:17
46 lines
2497 bytes
1. Use client-side cursor.
2. Use TADOConnection and set StoredProc.Connection = NULL before closing
connection.

 ADOStoredProc1->Active = true;
 ADOStoredProc1->Connection = NULL;
 ADOConnection1->Connected = false;

Recordset.Clone() clones cursor (affects current position, MoveBy(), Next(),
Prior() etc.)  but recordset stays the same.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Paul Cheetham" <PAC.News@dsl.pipex.com> �������/�������� � ��������
���������: news:MPG.1b9c0dd99db2ead2989691@Newsgroups.Borland.com...
>
> Hi,
>
> I am using a TADOStoredProc component to call a stored procedure on an
> MS SQL server and return a data set.
> I was expecting the dataset to be returned and held in memory, meaning I
> could close the connection, and then read the data as required.
>
> It seems though, that if I close the connection, my data goes with it!
> I have tried creating a new dataset (TCustomADODataSet) and using the
> Clone function - I expected this to copy the data but it appears not to.
>
> Can anyone tell me if it is possible to copy a datset into memory in
> some way, as it makes things so much neater.
>
>
> Thankyou.
>
>
>
> -- 
> Paul Cheetham
>
> "There are 10 types of people in the world - those that understand
> Binary, and those that don't."
Technical Details
Message-ID: <4132c674$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <MPG.1b9c0dd99db2ead2989691@Newsgroups.Borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,69a8ce37eaf4aef6
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <MPG.1b9c0dd99db2ead2989691@Newsgroups.Borland.com>
Subject: Re: Off-line data set
Date: Mon, 30 Aug 2004 10:17:11 +0400
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <4132c674$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093846644 213.234.218.42 (29 Aug 2004 23:17:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail