Article View: borland.public.cppbuilder.database.ado
Article #3050Re: I have a problem using a temp table.
From: Ferran Barba
Date: Sat, 04 Jan 2003 12:34
Date: Sat, 04 Jan 2003 12:34
48 lines
3083 bytes
3083 bytes
If query2 uses another connection than the one used to create the table it doesn't see the table. Make sure you use the same connection. "bmkiss67" <bmkiss67@aaahawk.com> escribi� en el mensaje news:3e159b1a@newsgroups.borland.com... > It's a #temptable. I first create it, load it with data, modify the data, > select data, and then execute it all with a execsql command in query1. > Right after that I try to perform a different select on it with query2. > Query2 returns the error that #temptable does not exist. > > "Ferran Barba" <ferran.barba@sifbm.com> wrote in message > news:3e1543ae$1@newsgroups.borland.com... > > What kind of temp table are you using (and in which database)? > > > > I'm asking this because if you create a temp table in SQL Server using # > > (like CREATE TABLE #tempTable ...) and you close the connection after > > creating it the table gets lost because it is a local temporary table. If > > you create a temp table using ## instead of # the table is accessible for > > all the user and gets deleted when all the users close the connection to > the > > server. I only know about SQL Server. > > > > If you create a temp table without # or ## (that is, a normal table), > maybe > > you have some king of access rights? > > > > "bmkiss67" <bmkiss67@aaahawk.com> escribi� en el mensaje > > news:3e146d0b@newsgroups.borland.com... > > > I have a temp table that I create on the fly and modify a bunch of data > in > > > and then I run a query against to fill a report out. When I did this > > > originally I did it using the BDE. I am in the process of switching to > > ADO. > > > The problem I am having is that I have a second query I run against the > > temp > > > table, but the query can't see the table. Any suggestions? > > > > > > > > > > > >
Technical Details
Message-ID:
<3e16d427@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!DIRECTV!204.94.211.44!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3e146d0b@newsgroups.borland.com> <3e1543ae$1@newsgroups.borland.com> <3e159b1a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fc5f9,b84a0b06ba73e515 X-Google-Attributes: gidfc5f9,public X-Google-Thread: 10698b,b84a0b06ba73e515 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-01-04 04:40:02 PST From: "Ferran Barba" <ferran.barba@sifbm.com> Newsgroups: borland.public.cppbuilder.database.ado,borland.public.cppbuilder.database.sqlservers References: <3e146d0b@newsgroups.borland.com> <3e1543ae$1@newsgroups.borland.com> <3e159b1a@newsgroups.borland.com> Subject: Re: I have a problem using a temp table. Date: Sat, 4 Jan 2003 13:34:40 +0100 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 80.38.150.57 Message-ID: <3e16d427@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1041683495 80.38.150.57 (4 Jan 2003 04:31:35 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!DIRECTV!204.94.211.44!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail