Click here to Skip to main content
15,889,482 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
What is Column aliases for view in SQL SERVER 2008?(Example)
Posted
Comments
krumia 24-Mar-12 4:31am    
http://www.codeproject.com/Articles/18654/Some-guidelines-for-posting-questions-in-the-forum

1 solution

SQL
SELECT myColumn AS 'My Column Name to Display' FROM myTable
This sets up an alias: the table column called myColumn is returned by the command as a column called My Column Name to Display
The later will be used as the header in a DataGridView or similar for example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900