|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Table Structure in SQL Server 2000
Dear All,
I have loaded SQL Server 2000 and connecting as Backend through VB, i have created some tables after creating a database as per the requirement. Whenever i want to know the table structure i am logging in to the SQL Server through the Enterprise Manager and after clicking on the Particular table and can be able to know the structure by the Design Table Option. Is there any command available so that i can be able to know the structure using the SQL Query Analyser. As i am using frequently the SQL Query Analyser. Thanks & Kind Regards, Harekrushna |
|
#2
|
|||
|
|||
|
There are a number of built-in stored procedures that will return structure information and metadata, but I find that to be rather tedious. I usually open 2 or 3 instances of Enterprise Manager and 1 instance of Query Analyzer and navigate between them as needed. If I'm using VB (depending on version) most of the structure data is available in the view database window once you add a connection object. In Visual InterDev, same applies if you add a data command to the global asa.
The built-in SPs are OK, but I just don't want to waste gray cells comitting them to memory. Hope this helps. |
|
#3
|
||||
|
||||
|
you can try
Code:
sp_help 'TableName' or Code:
SELECT * FROM Information_Schema.Columns WHERE Table_Name = 'TableName' |
|
#4
|
|||
|
|||
|
Thanks
Thanks a Lot.
Harekrushna Quote:
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Table Structure in SQL Server 2000 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|