How can I get column names from a table in sql server?




SELECT [name]
FROM syscolumns
WHERE id = (SELECT id FROM sysobjects WHERE type = 'U' AND [Name] = 'Your Table Name')



Comments

Popular posts from this blog

HOW TO Use the NumericUpDown Control

How to show help text in page on mouse move

Get control name in Page_Load event after post back by any control