How to get a list of columns using the "sys.columns" view in ms sql server?
Answer / Ajay Raj Singh
"To get a list of columns using the 'sys.columns' view in MS SQL Server, use the following query:nn```sqlndbcc table('sys.columns', 'table_name');n``"nReplace 'table_name' with the name of your table.
| Is This Answer Correct ? | 0 Yes | 0 No |
While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?
What are the dis_advantages of stored procedures, triggers, indexes?
what is the system function to get current user's user id? : Sql server database administration
What is database replication?
What are the differences between clustered and non-clustered index?
if no size is defined while creating the database, what size will the database have? : Sql server administration
What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio
What are .mdf files?
How can you swap values between two rows in a table using single- SQL statement?
1 Answers Tavant Technologies, Virtusa,
what are defaults? : Sql server database administration
How to use copy and concatenate commands in SQL?
How to test values returned by a subquery with the in operator?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)