Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Make a list of all tables in all data bases with creation date

By Kamel AL GAZZAH,

First I create a table called tab_alladatabases which contains 3 columns

1) db: the dta base name

2) tab : the table name

3) cdate the creation date of teh table

Then I construct a script which is getting the table names of all data bases by using master..sysdatabases and sysobjects tables

This script uses a cursor which gets as result a sql script

The sql script inserts into the table tab_alldatatbases the results

Total article views: 1396 | Views in the last 30 days: 0
 
Related Articles
FORUM

script to find that a login has permissions to which tables & SP's

script to find that a login has permissions to which tables & SP's

FORUM

sql script to find which user started restore and stopped while database was restoring in sql server 2008.

sql script to find which user started restore and stopped while database was restoring in sql server...

FORUM

sql script to find which user started restore and stopped while database was restoring in sql server 2008

sql script to find which user started restore and stopped while database was restoring in sql server...

Tags
 
Contribute