Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss Content Posted by David Bird
»
Shrink Log file for all Databases
Shrink Log file for all Databases
Rate Topic
Display Mode
Topic Options
Author
Message
David Bird
David Bird
Posted Monday, September 24, 2007 2:08 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 12:29 PM
Points: 182,
Visits: 952
Comments posted to this topic are about the item
Shrink Log file for all Databases
David Bird
My PC Quick Reference Guide
Post #402223
F. van 't Hoff
F. van 't Hoff
Posted Tuesday, November 29, 2011 8:11 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, December 07, 2011 5:27 AM
Points: 1,
Visits: 6
I've tried this script, but it will only work if there are no spaces in the db_name. We have a database named Mediabin Repository and when I run this script, I'll get the following error:
"Msg 911, Level 16, State 1, Line 1"
"Could not locate entry in sysdatabases for database 'MediaBin'. No entry found with that name. Make sure that the name is entered correctly."
What is the correct way to run this script when there are spaces in the database name?
Post #1213286
reddi_arjun
reddi_arjun
Posted Monday, March 18, 2013 7:29 AM
Grasshopper
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 7:31 PM
Points: 15,
Visits: 85
Thanks a lot.
The script was very helpful.
Post #1432189
TheSQLGuru
TheSQLGuru
Posted Monday, March 18, 2013 8:02 AM
Hall of Fame
Group: General Forum Members
Last Login: Yesterday @ 6:58 PM
Points: 3,581,
Visits: 5,125
reddi_arjun (3/18/2013)
Thanks a lot.
The script was very helpful.
PLEASE DO NOT DO THIS!!! IT IS A HORRIBLE, HORRIBLE THING TO DO ON YOUR SQL SERVER!!!
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Post #1432196
Lynn Pettis
Lynn Pettis
Posted Monday, March 18, 2013 9:54 AM
SSC-Insane
Group: General Forum Members
Last Login: Yesterday @ 11:07 PM
Points: 21,625,
Visits: 27,468
F. van 't Hoff (11/29/2011)
I've tried this script, but it will only work if there are no spaces in the db_name. We have a database named Mediabin Repository and when I run this script, I'll get the following error:
"Msg 911, Level 16, State 1, Line 1"
"Could not locate entry in sysdatabases for database 'MediaBin'. No entry found with that name. Make sure that the name is entered correctly."
What is the correct way to run this script when there are spaces in the database name?
Because your database name has a space in it, you would need to put it in brackets, [Mediabin Repository].
I also agree with Kevin. This is not something that should be done on a regular basis. I can see it as a one off due to extraordinary operations, such as a major archiving of data to another database.
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1432239
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.