In SQL 7 and higher you can use the Information_Schema views in each database. Run the following query in the database to list the columns for each table as well as properties of the columns.
Select *
From information_schema.columns
Columns in a specific table:
Select *
From information_schema.columns
Where table_name='AcctRecv' Terry L. Broadbent - DBA
Computing Links:
Is there a way to search Stored Procedures to find out how a table is populated with certain criteria. I don't really want to open every proc to find out if it matchs the information I need.
There is probably a more elegant way to do this, but here's one way you can search your stored procedures:
1. generate a script containing all of your stored procedures
2. open the script in any text editor
3. use the find capabilities of the text editor to search for the table name or whatever criteria works best to find what you're looking for
If your stored procedures are not encypted, you can use search the syscomments table for a character string.
Select o.name
from syscomments c
join sysobjects o
on c.id=o.id
where o.type='p'
and charindex('the text you want to find', c.text)>0 If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA
SQL Server Page:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.