Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 1355 | Views in the last 30 days: 2
 
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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones