spFindTableInfo is a great proc for finding info about your database. It will accept parameters like tablename, fieldname, size, datatype. So you can run it with no params, and it'll report every table, every field in those tables, and the size, datatype and whether its nullable or not. You can filter it by Table name and get all fields of that table. You can search for particular fields in a table, or data types in a field, or table.... well you get the idea.
I used this to familiarize myself with our data structure. A developer would ask about a field, and we'd guess the name and search for it, until we found the appropriate one. Its just a great tool. I suggest running it in master and naming it sp_FindTableInfo so that it can be accessed in each and every db you work with.
it will work on sql server 2000, not sure about 7 or below.
Recompile Views/SPs from DOS from .SQL Files.
This script is very helpful for anyone trying to recreate particular SQL Server Database Versions for Testing. It allows you to automatically recompile any stored procedures or views saved with drop, create and permission statements. The scripts must all be sitting in one directory and end in the same extension. I have found this very […]
2002-02-25
684 reads