Solved

Noob SQL question on a command

Posted on 2012-03-15
3
332 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dell Poweredge Server - Fault detected 8 152
SBS 2011 certificates expired - need to renew? 4 71
IPV6 Issues 3 29
SBS 2003 Windows 7 issues 7 19
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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