Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 October 18th, 2007, 04:23 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

You could add your own sort_order column in the table and create functions to handle the adding, deleting and reordering of slides then you can always just call: ORDER BY sort_order???

 
Old October 19th, 2007, 05:25 PM
Registered User
 
Join Date: Oct 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, that's what I have in the table, a column called sort_order but I can't do an ORDER BY prior to having SQL do the counting row.
 
Old October 23rd, 2007, 09:00 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

How can you count the rows without querying the database? I guess I still don't really understand what you're trying to do. Can you post some more information to explain what end result you're looking for?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.Write an Array (OK in Access but Not in M musosmiffy Classic ASP Databases 0 July 15th, 2007 04:06 PM
Difference between Trace.write and Debug.write surendraparashar ASP.NET 2.0 Professional 1 June 27th, 2007 02:12 AM
SQLserver 2000 vs SQLserver 2005 Express cJeffreywang BOOK: Beginning ASP.NET 2.0 and Databases 0 April 22nd, 2007 09:52 AM
is there anything like array in sqlserver? starnet SQL Server 2000 5 July 19th, 2006 08:01 AM
How to write xml data in SqlServer rekha_jsr XML 1 October 21st, 2004 12:22 PM





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