When we need the query of stored procedures we use 'Sp_Helptext procedurename'
Can something similar be done for tables?
When we need the query of stored procedures we use 'Sp_Helptext procedurename'
Can something similar be done for tables?
There does not appear to be a direct equivalent of sp_helptext that will work with tables.
The two methods that seem to be common on various message boards are:
There is an article on the second method here
Please use followig query
select * from information_Schema.columns where table_name = 'TableName'