Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Noob SQL question on a command

Posted on 2012-03-15
3
Medium Priority
?
336 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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