May 14, 2014 at 11:56 am
I have a database 'DB and Table Growth'. Inside that database table called 'GrowthTrack'.
Now I want to create a store procedure which that takes size of 'AdventureWorks' database and Tables insert into 'GrowthTrack' table with current date.
Can someone please write a script here?
May 14, 2014 at 12:15 pm
smtzac (5/14/2014)
I have a database 'DB and Table Growth'. Inside that database table called 'GrowthTrack'.Now I want to create a store procedure which that takes size of 'AdventureWorks' database and Tables insert into 'GrowthTrack' table with current date.
Can someone please write a script here?
What have you tried? A quick binoogle search should net you plenty of information.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
May 14, 2014 at 12:33 pm
Sean Lange (5/14/2014)
smtzac (5/14/2014)
I have a database 'DB and Table Growth'. Inside that database table called 'GrowthTrack'.Now I want to create a store procedure which that takes size of 'AdventureWorks' database and Tables insert into 'GrowthTrack' table with current date.
Can someone please write a script here?
What have you tried? A quick binoogle search should net you plenty of information.
I'm a fan of the Goong suggestion by Sean.
If you did such a search you might find this link...
http://jasonbrimhall.info/2014/03/28/table-space-updated-again/
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply