Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting field names alphabetically
Message
From
16/03/2005 12:53:39
 
General information
Forum:
Microsoft SQL Server
Category:
Database management
Miscellaneous
Thread ID:
00996402
Message ID:
00996433
Views:
14
>>I would like to either have SQL server show me the names of the table fields in alphabetical order or allow me to copy them to a text editor to sort them.
>>How would I do this?
>>
>
>Jim,
>
>You can try to ask it nicely, like this
SELECT * FROM pubs.INFORMATION_SCHEMA.COLUMNS
>	WHERE table_name = 'authors'
>	ORDER BY column_name
>
You never cease to amaze me.
It worked great

Thanks
Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform