Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

how can I permanently sort a table column? - sql 2005

$
0
0

hi sql gurus, 

there are some tables that I have to go into sometime to modify some quick things.  Unfortunately the columns are not sorted so I have to copy/paste in excel, sort, look for whatever I need and go back to the table for the changes.

is it possible to have the tables sorted ascending from whichever column every time I open them?  or what command can I use that does this every time I need it.

I found the following query

SELECT * FROM ReportRecipient ORDER BY ReportRecipientName ASC

but it just gives me a results which I end up copy/pasting again in excel :(

thanks everyone,

ceez


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>