Mar 21, 2006 #1 gust1480 Programmer Joined Mar 19, 2002 Messages 148 Location PH How can I view a certain table structure using sql scripts? Thanks much!
Mar 21, 2006 #2 bborissov Programmer Joined May 3, 2005 Messages 5,167 Location BG Code: SELECT * FROM MyDataBase.Information_Schema.columns WHERE Table_Name = 'MYTABLE_NAME' Borislav Borissov Upvote 0 Downvote
Code: SELECT * FROM MyDataBase.Information_Schema.columns WHERE Table_Name = 'MYTABLE_NAME' Borislav Borissov
Mar 21, 2006 #3 vongrunt Programmer Joined Mar 8, 2004 Messages 4,863 Location HR For viewing only: Code: sp_help 'MYTABLE_NAME' ------ [small]select stuff(stuff(replicate('<P> <B> ', 14), 109, 0, '<.'), 112, 0, '/')[/small] Upvote 0 Downvote
For viewing only: Code: sp_help 'MYTABLE_NAME' ------ [small]select stuff(stuff(replicate('<P> <B> ', 14), 109, 0, '<.'), 112, 0, '/')[/small]