"Bob Barrows [MVP]" wrote ...
> Hmm, I would probably have made a single table out of these, perhaps
> calling the table CourseAttributes. It would have three columns: product
> code, Attribute, Attribute Type (either "Feature", "Objective" or
> "PreRequisite")
ok - at this time it seems that the data structure is pretty set, ie, I have
no knowledge of additional items being need for a type of "Feature" only for
example - but if there were I'd probably have to adopt the existing
structure at that point - so I could make this change now that you've
suggested.
> My inclination is to make as few trips to the database (out-of-process)
> as possible.
Would you define a "trip" as a connection, or the execution of a command? I
was always lead to believe that it was the number of connections that could
have a big impact on the server (especially if you dont close 'em - tee hee

D), but I thought perhaps if there was one connection that fired those 4
SP's I mentioned in my other post that might not be so bad...I guess the
execution time might be slightly longer?
> Two options:
> 1 Return multiple resultsets from the procedure, using the recordset's
> NextRecordset method to move to the next recordset.
I've never tried that in ASP - I've done something similar in .net with the
dataset/datatables - I guess its similar is it?
> 2.Use a union query to return a single resultset with the structure
> suggested for the CourseAttributes table above - you could make a view
> out of this.
If I do this Bob, isn't that going to be exactly what I get from the SP
right now though? ie, about 20 rows per course where most of the columns in
the rows have the same data (ie the data from the Course table) because it
cant have the empty columns? I'd still have to iterate through a larger
record set and look for the differences to know when I'd got all of the
features or all of the objectives wouldn't I?
Thanks for your reply Bob - and further information appreciated.
Regards
Rob