Solved

Noob SQL question on a command

Posted on 2012-03-15
3
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
Because virtualization becomes more and more common, and, with Microsoft Hyper-V included in Windows Server at no additional costs, and, most server hardware nowadays is more than capable of running a physical Small Business Server (SBS) 2008 or 201…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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