Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 14th, 2005, 03:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default using a sequence to order a recordset

Hi there

I'm using an updateable numbered sequence to order a recordset using asp and MS SQL Server 2000.

i.e

Select * from cars order by Sequence

It's all fine except when the amount of records goes into double figures i.e 10 and then the sequence doesn't follow - 10 becomes the second recordset to appear?

Any ideas greatly appreciated.

thanks

Adam

 
Old August 21st, 2005, 11:12 PM
Authorized User
 
Join Date: Jan 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to askenkray
Default

Use the query

Select * from cars order by len(sequence),Sequence

That will surely work.
100%.
Pls revert.


Ashwin S.Kenkare
Programmer
CMI





Similar Threads
Thread Thread Starter Forum Replies Last Post
comparison using a sequence pcase XSLT 1 December 3rd, 2007 07:33 PM
sort recordset in different order pablohoney Classic ASP Databases 0 December 29th, 2005 08:32 PM
value from a sequence suhabassam JSP Basics 0 September 27th, 2005 01:33 AM
Order a recordset by specific values SoC SQL Language 2 August 28th, 2005 08:27 PM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.