I know the name of database.How can I query to get the details of tables , stored procedures and views corresponding to this database.
I just know the name of stored procedures is stored in the sysobjects system table and the text is stored in the syscomments system table in the current database. But I don't know to access it with only knowing the database name.I am using ms sql server.
Ram Mohan.
Sri Ram
Ranch Hand
Joined: Oct 03, 2005
Posts: 118
posted
0
Originally posted by Ram Mohan:
I know the name of database.How can I query to get the details of tables , stored procedures and views corresponding to this database.
I just know the name of stored procedures is stored in the sysobjects system table and the text is stored in the syscomments system table in the current database. But I don't know to access it with only knowing the database name.I am using ms sql server.
Run this query in analyser pointing to ur Database.
note the xtype, This will tell u if the object is table or view or whatever. things i know are PK - primary Key U - tables V - views F - foreign Keys
Ram Mohan
Greenhorn
Joined: Oct 21, 2005
Posts: 26
posted
0
Thankyou Ram It gives me the LIFE.
Ram Mohan.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.