Click here to Skip to main content
15,887,027 members
Home / Discussions / Database
   

Database

 
QuestionSQL server is not connecting from client Pin
findtango1-Jan-08 19:41
findtango1-Jan-08 19:41 
GeneralRe: SQL server is not connecting from client Pin
Michael Sync1-Jan-08 22:44
Michael Sync1-Jan-08 22:44 
GeneralRe: SQL server is not connecting from client Pin
findtango2-Jan-08 1:14
findtango2-Jan-08 1:14 
GeneralUpdate 2 tables using triggers.., [modified] Pin
Member 38798811-Jan-08 19:23
Member 38798811-Jan-08 19:23 
QuestionHow to prevent records from ordering? Pin
Member 41215111-Jan-08 1:12
Member 41215111-Jan-08 1:12 
AnswerRe: How to prevent records from ordering? Pin
vimal_yet1-Jan-08 2:26
vimal_yet1-Jan-08 2:26 
GeneralRe: How to prevent records from ordering? Pin
Colin Angus Mackay1-Jan-08 12:37
Colin Angus Mackay1-Jan-08 12:37 
AnswerRe: How to prevent records from ordering? Pin
Colin Angus Mackay1-Jan-08 12:44
Colin Angus Mackay1-Jan-08 12:44 
Member 4121511 wrote:
But sql server orders the records by the ID field(2,3,4,8,9). How to prevent this?


You can use the ORDER BY clause to specify an order. However, it doesn't accept arbitrary orders, just orders things based on the column (or columns) you specify.

You could, however, provide a complex CASE clause in the SELECT statement that results in an increasing sequence of numbers that can be ordered in the way you want.


AnswerRe: How to prevent records from ordering? Pin
andyharman2-Jan-08 3:59
professionalandyharman2-Jan-08 3:59 
Questionsql server next query Pin
Sonia Gupta31-Dec-07 21:00
Sonia Gupta31-Dec-07 21:00 
GeneralRe: sql server next query Pin
SimulationofSai31-Dec-07 21:24
SimulationofSai31-Dec-07 21:24 
GeneralRe: sql server next query Pin
Paddy Boyd2-Jan-08 1:30
Paddy Boyd2-Jan-08 1:30 
QuestionSuggestions please Pin
sindhutiwari31-Dec-07 19:31
sindhutiwari31-Dec-07 19:31 
GeneralRe: Suggestions please Pin
vimal_yet31-Dec-07 19:38
vimal_yet31-Dec-07 19:38 
GeneralRe: Suggestions please Pin
sindhutiwari31-Dec-07 19:53
sindhutiwari31-Dec-07 19:53 
GeneralRe: Suggestions please Pin
vimal_yet31-Dec-07 20:00
vimal_yet31-Dec-07 20:00 
GeneralRe: Suggestions please Pin
sindhutiwari31-Dec-07 20:27
sindhutiwari31-Dec-07 20:27 
GeneralRe: Suggestions please Pin
vimal_yet31-Dec-07 21:34
vimal_yet31-Dec-07 21:34 
Questionhow can i set password to my database Pin
vahid akbari31-Dec-07 5:31
vahid akbari31-Dec-07 5:31 
GeneralRe: how can i set password to my database Pin
DotNetXenon31-Dec-07 7:27
DotNetXenon31-Dec-07 7:27 
GeneralRe: how can i set password to my database Pin
vahid akbari1-Jan-08 17:43
vahid akbari1-Jan-08 17:43 
GeneralUnique Key Pin
.NET- India 31-Dec-07 2:21
.NET- India 31-Dec-07 2:21 
GeneralRe: Unique Key Pin
Colin Angus Mackay31-Dec-07 2:56
Colin Angus Mackay31-Dec-07 2:56 
GeneralRe: Unique Key Pin
Dave Kreskowiak31-Dec-07 4:25
mveDave Kreskowiak31-Dec-07 4:25 
GeneralRe: Unique Key Pin
Paul Conrad31-Dec-07 9:39
professionalPaul Conrad31-Dec-07 9:39 

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.