Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Noob SQL question on a command

Posted on 2012-03-15
3
Medium Priority
?
337 Views
Last Modified: 2012-03-15
I have a SBS 2008 server who's log file is huge.  The actual database is 5 MB, but the log file is 11 gigs.  I found this
http://msmvps.com/blogs/kwsupport/archive/2008/12/10/sbs-2008-and-sharepoint-log-file.aspx

And it is what I want to do, but when I run the first command,
sqlcmd –E –S \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query
it tells me
sqlcmd: '-E': unknown option.

Anyone have a tip on this?
0
Comment
Question by:tsaico
  • 3
3 Comments
 
LVL 9

Accepted Solution

by:
tsaico earned 0 total points
ID: 37725816
Ok, I found this, and it seemed to work out normally, but after I select Shrink Files, release unused space (which the system shows as 99% free now) it just flashes back and goes back to the same GUI i started with.
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_26935251.html

And the file path still shows the 11 GB file.  Does it take some time to shrink or give any indicator it is still working (or erroring out for that matter)?
0
 
LVL 9

Author Comment

by:tsaico
ID: 37727198
boy, perhaps I am just posting these in the wrong place or not giving Google searches enough, my third I have answered on my own without so much as a comment or suggestions..

In case someone goes over this same problem, here is how I fixed it.  I did this
http://www.howtodo.co.il/?p=428

and it worked great.  It also seems to be a better long term so the log isn't unlimited and will only have 1 gig worth of text data to review, which I am sure is enough in case there is a larger underlying issue which is causing this log to grow like this.
0
 
LVL 9

Author Closing Comment

by:tsaico
ID: 37727224
No one answered or suggested anything and I googled it myself.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Integration Management Part 2
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question