Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 IS anyway to insert the data in ascending order?

Author  Topic 

Vaishu
Posting Yak Master

178 Posts

Posted - 2008-01-08 : 12:21:23
Hi

I have a table with column name starts from col1 to col20. IS their anyway to insert the data and sort the table by col1 and col2 and SAVE IT.

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2008-01-08 : 12:24:05
The way data is stored in the table should not matter. You should write queries to get the data the way you want it.

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-08 : 12:24:10
order in the table is completly meaningless and is only guaranteed by using order by.
order of columns is also irrelevant.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-08 : 12:24:31
by 5 seconds

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page
   

- Advertisement -