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.
Author |
Topic |
forrestgump
Starting Member
19 Posts |
Posted - 2014-09-19 : 08:16:02
|
If I have a table called employees with the fields: Employee_ID, First_Name, Surname, address_1, City, Postcode.How do I write a SQL query to return the actual field names i.e. (Employee_ID, First_Name, Surname, address_1, City, Postcode) and not the values in the table? |
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2014-09-19 : 12:00:37
|
select * from sys.columns |
|
|
|
|
|