0

I have a table name as 'tblOrder', having three columns. I would like to print the column names.

tblOrder

I want a script that should return a result as:

OrderId Name OrderTrackingNo

1 Answers1

0
SELECT * FROM sys.columns WHERE object_id = OBJECT_ID('tblOrder')

Try this

Laos
  • 28
  • 7