Editorial / Best Answer
suji
Here are multiple ways to get the table information.
The DESCRIBE command does not exist in MS SQL SERVER. This is an Oracle command used to describe the structure of objects within a given database. To achieve the same task in MSSQL Server, there are a series of stored procedures with the prefix SP_ that can be used.
To view the structure of a table within the current database,
use the command
Code
sp_help 'TABLE_NAME';
If you would like to see more details, Create your custom procedure
Code
span style="color: #ff0000;">'order'
Here is another alternative way to get the same information
Code
span style="color: #ff0000;">'TableName''Employee'
Here is the usage :
Code
span style="color: #ff0000;">'Department''sa''TableName'
Contributors for the editorial answer : Kewlshiva, srilakshmi.b, raaghav,kevaburg
What is DESCRIBE command in SQL Server?
Editorial / Best Answer
sujiProfile Answers by suji Questions by suji
Here are multiple ways to get the table information. The DESCRIBE command does not exist in MS SQL SERVER. This is an Oracle command used to describe the structure of objects within a given database. To achieve the same task in MSSQL Server, there are a series of stored procedures with the prefix SP_ that can be used. To view the structure of a table within the current database, use the command
If you would like to see more details, Create your custom procedureLatest News
It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Disable
Ad Blocker
Learn More
Login
GeekInterview
Login
Create your
GeekInterview account
Signup
Continue Reading after Disabling
Refresh