Re: combine recordsets
- From: jamesfreddyc <jamesfreddyc@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Nov 2008 10:49:01 -0800
Frankly, I never understood the prejudice against creating "additional
server proc's". If I were doing this, I would create a procedure that
inserts the results of those two procedures into temp tables, then do a
join and return the combined results.
Yes, I completely understand and would if I could. However, this particular
SQLServer db is running ArcSDE (Spatial Database Engine, and ESRI product for
the Geographic Information Systems software). If you have ever had to work
with this special database, aka.. "GeoDatabase", you would find that it
manages all of the tables registered with the ArcSDE with it's own
specialized functions.
One huge problem is it's internal ObjectID creation/population that occurs
across the entire database --- this is something that simply cannot be
manipulated, and as such, CREATE TABLE # commands would cause serious issues.
Perhaps I could opt for creating/using a db not participating in the ArcSDE,
but I simply don't have the access/permissions/opportunity to do so.
But, thanks for the input, I will take a closer look at why my original code
failed.
thanks,
j
"Bob Barrows" wrote:
So instead you'd rather reinvent the wheel, and try to do the job the.
SQL database engine was designed to do?
Frankly, I never understood the prejudice against creating "additional
server proc's". If I were doing this, I would create a procedure that
inserts the results of those two procedures into temp tables, then do a
join and return the combined results.
But ...
I see you posted code in your original post, and it appears that it
should do what you want, i.e., add fields to the new rs that are not
already in the rs.
What is the problem with what you posted?
jamesfreddyc wrote:
Bill,--
rs1 and rs2 are already coming from complex SProcs on SQLServer. I
don't want to add additional server proc's, I just want to combine
these two recordsets for display in a DataGrid.
Thanks,
HTH,
Bob Barrows
- Follow-Ups:
- Re: combine recordsets
- From: Bob Barrows
- Re: combine recordsets
- References:
- combine recordsets
- From: jamesfreddyc
- Re: combine recordsets
- From: William \(Bill\) Vaughn
- Re: combine recordsets
- From: jamesfreddyc
- Re: combine recordsets
- From: Bob Barrows
- combine recordsets
- Prev by Date: Re: combine recordsets
- Next by Date: Re: combine recordsets
- Previous by thread: Re: combine recordsets
- Next by thread: Re: combine recordsets
- Index(es):
Relevant Pages
|