May 13, 2004 #1 bastienk Programmer Mar 3, 2004 326 CA Hi All, Is there an sp I can query to display / return the schema of an db? Bastien Cat, the other other white meat
Hi All, Is there an sp I can query to display / return the schema of an db? Bastien Cat, the other other white meat
May 13, 2004 #2 donutman Programmer Dec 20, 2002 2,481 US Right click on a table in EM and there is a choice for scripting any/all objects. -Karl Upvote 0 Downvote
May 13, 2004 Thread starter #3 bastienk Programmer Mar 3, 2004 326 CA Thanks, the catch is I need to run this thru ADO... Bastien Cat, the other other white meat Upvote 0 Downvote
May 13, 2004 #4 dobrios Programmer Dec 27, 2000 54 US sp_help <tablename> But this returns an Array of recordsets, so you need to retrieve one you need using something like this Dim Array() As Object Dim myRs AS ADODB.Recordset Array() = call_your_sproc_here(<tableName>) Set myRs = Array(1) Hope this helps Upvote 0 Downvote
sp_help <tablename> But this returns an Array of recordsets, so you need to retrieve one you need using something like this Dim Array() As Object Dim myRs AS ADODB.Recordset Array() = call_your_sproc_here(<tableName>) Set myRs = Array(1) Hope this helps
May 13, 2004 #5 MDXer Technical User Oct 19, 2002 1,982 US select * from INFORMATION_SCHEMA.TABLES -Lists Tables in a DB select * from INFORMATION_SCHEMA.TABLES - Lests the Columns and the appropriate Table select * from INFORMATION_SCHEMA.VIEWS - Lists your Views Look up INFORMATION_SCHEMA in BOL for a complete list. "Shoot Me! Shoot Me NOW!!!" - Daffy Duck Upvote 0 Downvote
select * from INFORMATION_SCHEMA.TABLES -Lists Tables in a DB select * from INFORMATION_SCHEMA.TABLES - Lests the Columns and the appropriate Table select * from INFORMATION_SCHEMA.VIEWS - Lists your Views Look up INFORMATION_SCHEMA in BOL for a complete list. "Shoot Me! Shoot Me NOW!!!" - Daffy Duck
May 13, 2004 #6 dobrios Programmer Dec 27, 2000 54 US Sorry, That was to get table stats. Upvote 0 Downvote
May 13, 2004 Thread starter #7 bastienk Programmer Mar 3, 2004 326 CA MDXer, Yours is the same solution I found as well...that is what I will use Thanks All Bastien Cat, the other other white meat Upvote 0 Downvote
MDXer, Yours is the same solution I found as well...that is what I will use Thanks All Bastien Cat, the other other white meat