| 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.
|
|
|||
|
Thanks a lot for this...
|
![]() |
| Thread Tools | Search this Thread |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.sqlrecipes.com/sql_questions_answers/how_get_table_structure_via_sql-92/
|
|||
| Posted By | For | Type | Date |
| superbullet's bookmarks on del.icio.us | This thread | Refback | 05-16-2008 02:04 PM |