Click here to Skip to main content
15,906,574 members
Home / Discussions / Database
   

Database

 
AnswerRe: Is this possible to customize the ODBC Driver for SQL Server 2000 to support SQL Server 2005 too? Pin
cmk26-Mar-06 0:20
cmk26-Mar-06 0:20 
QuestionHow to avoid dead locks in SQL Server 2000 Pin
Ph@ntom25-Mar-06 1:24
Ph@ntom25-Mar-06 1:24 
QuestionReporting Service: "Remote name cannot be resolved" Pin
devvvy24-Mar-06 17:23
devvvy24-Mar-06 17:23 
Questionsql sort problem Pin
shabonaa24-Mar-06 7:37
shabonaa24-Mar-06 7:37 
AnswerRe: sql sort problem Pin
Dave Kreskowiak24-Mar-06 8:18
mveDave Kreskowiak24-Mar-06 8:18 
GeneralRe: sql sort problem Pin
shabonaa24-Mar-06 10:28
shabonaa24-Mar-06 10:28 
GeneralRe: sql sort problem Pin
Rob Graham24-Mar-06 11:40
Rob Graham24-Mar-06 11:40 
GeneralRe: sql sort problem Pin
Colin Angus Mackay24-Mar-06 12:41
Colin Angus Mackay24-Mar-06 12:41 
In addition to Rob's explanation I should also point out that the best way to think of the contents of a table are as a set. Sets are naturally unordered - they are just a collection of things. Even if I want it ordered by ascending primary key (the primary key is ususally the clustered index which is the thing that determines the physical order within the database) I always put an ORDER BY myPrimaryKey ASC because I take no guarantee that the functionality will remain or that someone else will come along after and optimise the database by moving the clustered index onto something else.

In short, if you want an ordered result set then specify the order. Otherwise treat the result as unordered (even if it appears otherwise)

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

GeneralRe: sql sort problem Pin
shabonaa24-Mar-06 13:07
shabonaa24-Mar-06 13:07 
QuestionQuery Is Required? Pin
majidbhutta24-Mar-06 6:00
majidbhutta24-Mar-06 6:00 
QuestionPlease help totally lost on syntax Pin
MeterMan24-Mar-06 4:09
MeterMan24-Mar-06 4:09 
AnswerRe: Please help totally lost on syntax Pin
Michael Potter24-Mar-06 4:21
Michael Potter24-Mar-06 4:21 
GeneralRe: Please help totally lost on syntax Pin
MeterMan24-Mar-06 4:36
MeterMan24-Mar-06 4:36 
GeneralRe: Please help totally lost on syntax Pin
Michael Potter24-Mar-06 4:50
Michael Potter24-Mar-06 4:50 
GeneralRe: Please help totally lost on syntax Pin
MeterMan24-Mar-06 4:43
MeterMan24-Mar-06 4:43 
GeneralRe: Please help totally lost on syntax Pin
Michael Potter24-Mar-06 4:52
Michael Potter24-Mar-06 4:52 
GeneralRe: Please help totally lost on syntax Pin
MeterMan24-Mar-06 6:25
MeterMan24-Mar-06 6:25 
GeneralRe: Please help totally lost on syntax Pin
Michael Potter24-Mar-06 8:39
Michael Potter24-Mar-06 8:39 
GeneralRe: Please help totally lost on syntax Pin
MeterMan25-Mar-06 12:43
MeterMan25-Mar-06 12:43 
QuestionDelete Procedure Pin
shapper24-Mar-06 3:28
shapper24-Mar-06 3:28 
AnswerRe: Delete Procedure Pin
Michael Potter24-Mar-06 4:10
Michael Potter24-Mar-06 4:10 
QuestionSQL Server over Virtual Private Network Pin
StyleGuide24-Mar-06 0:08
StyleGuide24-Mar-06 0:08 
AnswerRe: SQL Server over Virtual Private Network Pin
Luis Alonso Ramos24-Mar-06 5:45
Luis Alonso Ramos24-Mar-06 5:45 
GeneralRe: SQL Server over Virtual Private Network Pin
StyleGuide26-Mar-06 6:21
StyleGuide26-Mar-06 6:21 
GeneralRe: SQL Server over Virtual Private Network Pin
Luis Alonso Ramos26-Mar-06 17:47
Luis Alonso Ramos26-Mar-06 17:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.