How do you get Column names only for a table (SQL Server)?
Submitted by: AdministratorWrite the Query. -
select name from syscolumns
where id=(select id from sysobjects where name='user_hdr')
order by colid --user_hdr is the table name
Submitted by: Administrator
select name from syscolumns
where id=(select id from sysobjects where name='user_hdr')
order by colid --user_hdr is the table name
Submitted by: Administrator
Read Online Java Database Job Interview Questions And Answers
Top Java Database Questions
☺ | Is the JDBC-ODBC Bridge multi-threaded? |
☺ | What is 2-phase commit? |
☺ | How do you get Column names only for a table (SQL Server)? |
☺ | What is a “dirty read”? |
☺ | What is cold backup, hot backup, warm backup recovery? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |