Click here to Skip to main content
15,902,299 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server 2005 data import - best practices? Pin
Colin Angus Mackay13-Mar-07 22:16
Colin Angus Mackay13-Mar-07 22:16 
GeneralRe: SQL Server 2005 data import - best practices? Pin
Tobias Schoenig13-Mar-07 22:46
Tobias Schoenig13-Mar-07 22:46 
GeneralRe: SQL Server 2005 data import - best practices? Pin
Colin Angus Mackay13-Mar-07 22:52
Colin Angus Mackay13-Mar-07 22:52 
GeneralRe: SQL Server 2005 data import - best practices? Pin
Tobias Schoenig13-Mar-07 23:00
Tobias Schoenig13-Mar-07 23:00 
GeneralRe: SQL Server 2005 data import - best practices? Pin
Colin Angus Mackay13-Mar-07 23:48
Colin Angus Mackay13-Mar-07 23:48 
GeneralRe: SQL Server 2005 data import - best practices? Pin
Tobias Schoenig14-Mar-07 0:02
Tobias Schoenig14-Mar-07 0:02 
GeneralRe: SQL Server 2005 data import - best practices? Pin
Colin Angus Mackay14-Mar-07 22:51
Colin Angus Mackay14-Mar-07 22:51 
QuestionError while uploading using OleDb Pin
jithbiz003313-Mar-07 21:14
jithbiz003313-Mar-07 21:14 
AnswerRe: Error while uploading using OleDb Pin
Colin Angus Mackay13-Mar-07 22:08
Colin Angus Mackay13-Mar-07 22:08 
GeneralRe: Error while uploading using OleDb Pin
jithbiz003316-Mar-07 18:42
jithbiz003316-Mar-07 18:42 
GeneralRe: Error while uploading using OleDb Pin
Colin Angus Mackay16-Mar-07 23:46
Colin Angus Mackay16-Mar-07 23:46 
GeneralRe: Error while uploading using OleDb [modified] Pin
jithbiz003321-Mar-07 18:44
jithbiz003321-Mar-07 18:44 
QuestionFunctions in SQL Server...... Pin
Smart_Boy13-Mar-07 18:54
Smart_Boy13-Mar-07 18:54 
AnswerRe: Functions in SQL Server...... Pin
Colin Angus Mackay13-Mar-07 22:07
Colin Angus Mackay13-Mar-07 22:07 
GeneralRe: Functions in SQL Server...... [modified] Pin
Smart_Boy14-Mar-07 20:39
Smart_Boy14-Mar-07 20:39 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay14-Mar-07 22:55
Colin Angus Mackay14-Mar-07 22:55 
GeneralRe: Functions in SQL Server...... Pin
Smart_Boy15-Mar-07 0:25
Smart_Boy15-Mar-07 0:25 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay15-Mar-07 7:39
Colin Angus Mackay15-Mar-07 7:39 
GeneralRe: Functions in SQL Server...... Pin
Smart_Boy15-Mar-07 20:19
Smart_Boy15-Mar-07 20:19 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay15-Mar-07 23:21
Colin Angus Mackay15-Mar-07 23:21 
GeneralRe: Functions in SQL Server...... Pin
Smart_Boy15-Mar-07 23:37
Smart_Boy15-Mar-07 23:37 
GeneralRe: Functions in SQL Server...... Pin
Colin Angus Mackay16-Mar-07 1:21
Colin Angus Mackay16-Mar-07 1:21 
Smart_Boy wrote:
I didnt got ur First Point....


You want the data to be inserted in a specific order. You cannot. The table contains no order. Any perceived order is an illusion created by the specific implementation of the database.

If you attempt to add an order by class to an INSERT statement it will come back with an error. The order data is inserted is not necessarily the order in which it is stored. The order in which the data is stored may change. It is outwith your control.

If you want the data to be retrieved in a specific order then you have add some markers to the table so that it can be done.

e.g.

The table contains the columns:
Menu, SubMenu, Detail, Combined

The first three columns can be used in an ORDER BY clause. The last column is used in the SELECT's column list

SELECT Combined
FROM MyTable
ORDER BY Menu, SubMenu, Detail


The INSERT statements would need to be altered to add the additional data to your table, with nulls in place where there is no relevant information.


GeneralRe: Functions in SQL Server...... Pin
Smart_Boy16-Mar-07 18:37
Smart_Boy16-Mar-07 18:37 
GeneralSQL Server 2000 and 2005 [moved] Pin
Richard Andrew x6413-Mar-07 10:51
professionalRichard Andrew x6413-Mar-07 10:51 
GeneralRe: SQL Server 2000 and 2005 Pin
MoustafaS13-Mar-07 10:58
MoustafaS13-Mar-07 10:58 

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.