How to open TZStoredProc?

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
nostradumbass
Junior Boarder
Junior Boarder
Posts: 27
Joined: 22.05.2008, 23:54

How to open TZStoredProc?

Post by nostradumbass »

Zeos 6.6.2-RC / Firebird 2.1.1.17910 embedded / D2007

What is the proper way to open a TZStoredProc which has a SELECT statement ?

Active := True
or
ExecSQL
or
ExecProc
or
Open ???

TDBGrid is linked to TDataSource which is linked to TZStoredProc.

Upon executing the Open statement, I get the field headings in the DBGrid, but there is no data in there.

But if I set Active = True in the designer, then I can see the data in the DBGrid.

What is the problem?


Thanks in advance,
ND
Last edited by nostradumbass on 30.05.2008, 00:52, edited 1 time in total.
nostradumbass
Junior Boarder
Junior Boarder
Posts: 27
Joined: 22.05.2008, 23:54

Post by nostradumbass »

I fixed this, by putting the database file in the same directory as the application _and_ doing a rebuild on the project.

Thanks.

-ND
Post Reply