Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #433
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: descibe tables in sqlcmd |
| Date | 2011-06-12 20:32 +0200 |
| Organization | Erland Sommarskog |
| Message-ID | <Xns9F02D0F558C41Yazorman@127.0.0.1> (permalink) |
| References | <4a18753e-487c-4527-ac18-7c00f5e495e6@d1g2000yqm.googlegroups.com> |
björn lundin (b.f.lundin@gmail.com) writes: > In other databases, the prompt-tool offers a way of doing dml/ddl > statements. > They usually have a way of describing objects in the db as well > I have not found that with sqlcmd yet. Try "EXEC sp_help 'tbl'". Which you can shorten to "sp_help tbl", as long as there is no schema component in the name. Although, Microsoft is moving away from the sp_helpxxx procedures, why new features may not be presented in these. Rather, MS thinks it better to query the catalog views directly. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
descibe tables in sqlcmd björn lundin <b.f.lundin@gmail.com> - 2011-06-12 07:25 -0700
Re: descibe tables in sqlcmd Erland Sommarskog <esquel@sommarskog.se> - 2011-06-12 20:32 +0200
Re: descibe tables in sqlcmd björn lundin <b.f.lundin@gmail.com> - 2011-06-12 13:04 -0700
csiph-web