| Author |
Topic |
|
sent_sara
Constraint Violating Yak Guru
377 Posts |
Posted - 2010-03-05 : 09:56:03
|
| how to query Table definition (incase of stored procedure it is helptext) |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-03-05 : 09:57:06
|
| EXEC sp_help 'table_name'MadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-03-05 : 09:58:12
|
| or simply highlight the tablename in query analyser and press alt + F1------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
sent_sara
Constraint Violating Yak Guru
377 Posts |
Posted - 2010-03-05 : 10:03:29
|
Hi madhivanan,i need the create statement script[code]create Table_name(sno int ,name varchar(10))[code]through sqlstatmentquote: Originally posted by madhivanan EXEC sp_help 'table_name'MadhivananFailing to plan is Planning to fail
|
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
sent_sara
Constraint Violating Yak Guru
377 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-03-05 : 10:14:16
|
quote: Originally posted by sent_sara when i try to Execute the below Stored Procedure ,it shows the below errorMsg 208, Level 16, State 1, Procedure GenerateScript, Line 31Invalid object name 'Information_Schema.COLUMNS'quote: Originally posted by madhivanan Try thishttp://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/generate-sql-script.aspxMadhivananFailing to plan is Planning to fail
are you using ms sql server?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-03-05 : 10:16:10
|
| Instead ofInformation_Schema.COLUMNSuseINFORMATION_SCHEMA.COLUMNSMadhivananFailing to plan is Planning to fail |
 |
|
|
|