We help IT Professionals succeed at work.

EXEC      sp_msforeachtable 'sp_spaceused ''?'''

pinaldave
pinaldave asked
on
Medium Priority
1,817 Views
Last Modified: 2010-05-18
This is related question to
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_21786711.html
Please read original question also and if you can help there it would be helpful.

I can use this syntax to retrive all the size of the table. Can I also retrive the datecreated of the table ?

EXEC      sp_msforeachtable 'sp_spaceused ''?'''  

Regards,
Comment
Watch Question

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT

Author

Commented:
Select name
from sysobjects
where type = 'U'
     and crdate <= dateadd(m,1,getDate())
     and name like 'MyTmp_%'

This is the correct answer and is part of the original question.
Though this is separate question, I am sure I can assign points for that.

Kind Regards,
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.