🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Merge 2 DataSets together

#4983
From: Tharun Pillay
Date: Wed, 15 Aug 2001 21:03
23 lines
1755 bytes
Firstly, I apologise, I meant temporary table.

Okay. If you're using SQL Server 7/2000 (which is mainly what I deal with),
it would go a little like this.

Assume table A (Seq int, [Name] varchar)
Assume table B like table A

Basically create a temporary table using a # symbol in front that looks like
A (or B).

This temporary table is connection based ie connection X will not see
connection Y's temporary tables, though you may define a global temporary
table available to all connections using a double ##.

After creating the temporary table, run an insert to put all rows from A and
all rows from B into the temp table. Now run a select on the temp table
and... _woohoo_ !! It works!

Remeber, this methods nice cause all the works done on the server :)

Regards,
Tharun
Technical Details
Message-ID: <3b7ae3e6_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!howland.erols.net!usc.edu!newspeer.cts.com!feed1-in.uncensored-news.com!propagator-la!news-in.superfeed.net!caladan.arrakis.es!dnews
References: <3b792636_1@dnews> <3b799aef_2@dnews> <3b7a3b58_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,4544575fdb117cf6
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-08-15 14:16:26 PST
From: "Tharun Pillay" <tharun@thasa.co.za>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3b792636_1@dnews> <3b799aef_2@dnews> <3b7a3b58_2@dnews>
Subject: Re: Merge 2 DataSets together
Date: Wed, 15 Aug 2001 23:03:02 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 155.239.234.154
Message-ID: <3b7ae3e6_1@dnews>
X-Trace: dnews 997909478 155.239.234.154 (15 Aug 2001 14:04:38 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!howland.erols.net!usc.edu!newspeer.cts.com!feed1-in.uncensored-news.com!propagator-la!news-in.superfeed.net!caladan.arrakis.es!dnews