Re: Sorting ADO recordset on a nameless field..?
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Fri, 23 Dec 2005 15:09:10 -0000
> In an ASP, I am building a recordset from a stored procedure call which
> returns two fields. The first is a straight call to a table column the
second
> is concatenated by a function from several fields (last name, first name,
mi).
>
> i.e. select distinct db.person_id, ns.getNameByPersonId(db.person_id, 'L')
>
> The problem is that this second field is the one I'd like to sort on and
the
> rs.sort requires field name arguments.
Right. So why not give your composite 2nd field a name in your Stored
Procedure?
You can then refer to it in your recordset and sort by it
Stephen Howe
.
- Prev by Date: RE: Replacement for VB 6.0 Record sets
- Next by Date: Re: WriteXML
- Previous by thread: RE: Replacement for VB 6.0 Record sets
- Next by thread: Re: Query Two Databases
- Index(es):
Relevant Pages
|
|