| SQL - Questions and Answers Have a SQL question? Post it here. First do a search to see if someone hasn't already answered it. |
|
|||
How to get table structure via SQL?Hi, I'm currently programming an automatic class builder that will create C# or VB class to controll a SQL Server 2000 data base. I need to be able to select the structure of the table to extract the Column names, types, max length, etc. I've done this while I was in college, but I don't seems to find any clue about it on Inet. Any idea ?
Select Struct ??? |
|
|||
SELECT table_name,ordinal_position,column_name,data_type, is_nullable,character_maximum_length FROM |
|
|||
|
Go to Sql server 2000 and execute " sp_help tablename" i already worked with it.it definitely works.
|
![]() |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|