Now when you are moving from SIT to Production
with a team like I am in trust me its a pain....
but i thought of what can i do to keep track of all this changes join hogwart's and learn magic
then i came across pinal's Article here and vola
Here is the query and visit pinal's site for any info
  1. SELECT name FROM sys.objects   
  2. WHERE type = 'P'   
  3. AND DATEDIFF(D,modify_date, GETDATE()) < 30  

some other types that may be helpful
Object type: AF = Aggregate function (CLR)
C = CHECK constraint
D = DEFAULT (constraint or stand-alone)
F = FOREIGN KEY constraint
FN = SQL scalar function
FS = Assembly (CLR) scalar-function
FT = Assembly (CLR) table-valued function
IF = SQL inline table-valued function
IT = Internal table
P = SQL Stored Procedure
PC = Assembly (CLR) stored-procedure
PG = Plan guide
PK = PRIMARY KEY constraint
R = Rule (old-style, stand-alone)
RF = Replication-filter-procedure
S = System base table
SN = Synonym
SO = Sequence object
SQ = Service queue
TA = Assembly (CLR) DML trigger
TF = SQL table-valued-function
TR = SQL DML trigger
TT = Table type
U = Table (user-defined)
UQ = UNIQUE constraint
V = View
X = Extended stored procedure


0 comments:

Post a Comment