This caped hero came to simplify (y)our world one database at a time. His queries will dazzle you. His keystrokes will simplify. With SQLMan there are no transactions logs. SQLMan fears only one thing, GokMan. If you ask what’s his secret weapon………………………celery and kidney beans. Source to them for the great image: http://danmagyar.blogspot.be/2008/02/sql-man.html
The last week I began with SQLMan a new project for a Multinational society in my country. I had to terminate the job from the former SharePoint Administrator. I received 1500 pages of documentation for read, but all went to the “Recycle Bin” :) On Command Prompt, I wrote MSTSC and began my analysis. First thing that I remarked was that the SQL Server wasn’t in mixed mode and there wasn’t a SA user/Password. So the first question was:
“How to recover SA password ”
CREATE LOGIN GKNZCFC WITH PASSWORD = ‘1#GKNSP#1′ (Remember SQL server has default strong password policy) Go
sp_addsrvrolemember ‘GKNZCFC’, ‘sysadmin’ go
But this was not the only way to do it, here some other possibilities all chooses randomly on Google or BING.
To reset the SA password, you can make the following:
OR To reset the SA password, you can make the following:
OR From a Query
OR From a command prompt
Finally I could connect with my SQL Account on my SQL Server. I was thinking that everything was OK, but another stranger error was shown.
From the SQL UI
From a Query
When planning the capacity for your SharePoint 2010 Farm, we don’t have to forget about the size of our Search databases. SharePoint 2010 Search leverages three distinct databases, with very separate roles as follows:
Per TechNet, the recommendations are as follows:
Search requires three databases. Your environment may include multiple Property and Crawl databases.The Search administration database is typically small: allocate 10 GB.To estimate the required storage for your Property and Crawl databases, use the following multipliers:
The IOPS requirements for Search are significant.
For detailed information about how to estimate capacity required for Search, see http://technet.microsoft.com/en-us/library/cc298801.aspx#section1c
But what when you want to Shrink all your databases? Ikarstein has the solution for us: Here is his script: http://ikarstein.wordpress.com/2011/08/28/truncate-shrink-log-files-of-databases-in-sql-server-2008-r2/
So why using this script and not the option “Auto-Shrink” from SQL Server?
Here are the words of Paul Randal – MSFT
In my opinion, this feature causes way more problems than it solves (in fact, I can't think of a single problem it solves) and should be removed from the product. Remember I'm talking about auto-shrink, not manual shrink. Post a comment or drop me a line if you think there's a scenario where it's required. So why?
So - if that hasn't convinced you to make sure its turned off, I don't know what will. For databases created on SQL Server 2005, the AUTO_SHRINK option is off by default. You can use ALTER DATABASE yourdb SET AUTO_SHRINK OFF for all others, especially the MODEL database, so new databases don't inherit the setting unwittingly.
Ed Price - MSFT edited Revision 2. Comment: Title & tags
Carsten Siemens edited Revision 1. Comment: typo fixed
thanks for that.
Your welcome finsol :)
More info on www.gokanozcifci.be
I love SQL Man!
I love it to Ed :-)