Clone records from a TMyStoredProc?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Illsley
Posts: 4
Joined: Wed 04 Oct 2006 07:52

Clone records from a TMyStoredProc?

Post by Illsley » Wed 04 Oct 2006 07:55

Hey all,

Im using MYDAC (MySQL) and I am wondering how I can open a TMyStoredProc, take the result records and store them somewhere else, close the proc and still use the records that I stored?



Cheers
Illsley

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 04 Oct 2006 09:41

Try to move records from MyStoredProc into VirtualTable. This looks like following:

Code: Select all

  MyStoredProc.Execute;
  VirtualTable.Assign(MyStoredProc);
  VirtualTable.Open;
TVirtualTable component is included into MyDAC installation package. You can find this component on DataAccess tab of Component Palette.

Illsley
Posts: 4
Joined: Wed 04 Oct 2006 07:52

Post by Illsley » Wed 18 Oct 2006 12:54

Thanks! Will try that.

Post Reply