TZTable and temporary tables

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
aleroot
Fresh Boarder
Fresh Boarder
Posts: 13
Joined: 21.02.2013, 22:27

TZTable and temporary tables

Post by aleroot »

I'm trying to use a TZTAble component to link a Temporary table on mssql(e.g. #tablename ), but I get an error each time I try to open the TZTable component ...

The error message say table #tablename not found even if the table is present because I have previously created it with a TZQuery ...


Is there a way to link a TZTable object with a temporary table ?

Is there a TZTempTable component ?


Thanks.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Post by marsupilami »

Hello aleroot,

what happens if you use a query and do something like
select * from #tablename
or like
select * from [#tablename]
? And do you use Zeos 6.6 or 7.0? If you use 6.6, did you try 7.0?
Best regards,

Jan
reiquarge
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 08.11.2016, 07:31
Contact:

TZTable and temporary tables

Post by reiquarge »

A TEMPORARY table is visible only to the current connection, and is dropped automatically when the connection is closed.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: TZTable and temporary tables

Post by marsupilami »

Hello mysterious new user. Welcome to the Zeos forums. Does it really make sense to pst to a thread that has seen no activity for three years now? Even then I think your post doesn't help. Or are you sure, that the original poster didn't make sure that the table exists for his connection when he does what he tries to do?

Best regards,

Jan
Post Reply