SQL Server comment can't be the field name ?

  • Thread starter Thread starter Sébastien
  • Start date Start date
S

Sébastien

Hi,

I would like to know if there is any way to get the Description SQL
Server field in the header row of my datagrid or simply in a textbox. I did
not found any way to get the Description field (I think it is the field we
use to display something else than the field name). I would like to assign a
dataset to my datagrid and have the Description on the header row instead
the field names.

Thank you for your time and your help.
Sébastien
 
You can put anything you want as the column name by aliasing it in the
SELECT statement:

SELECT MyCol AS DescriptionHere FROM dbo.TableName

-- Mary
MCW Technologies
http://www.mcwtech.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top