iDocs steunt team 2Dakar
iDocs steunt team 2Dakar en het goede doel:
Medicijnen voor de medische post in Fatoto – Kantora district Oost Gambia.
Op 3 november 2012 gaan Ronald Bruinsma en Bert Paarhuis als team: 2Dakar van start in de Amsterdam-Dakar Challenge. De twee collega’s gaan de uitdaging aan om met een, door henzelf opgeknapte, oude Mercedes dwars door de Sahara naar Dakar te rijden. In 3 weken hopen ze maar liefst 8.000 km af te leggen.
Enable FILESTREAM on SQL Server 2008R2
FILESTREAM is a feature of SQL 2008 that supports BLOB file storage on NTFS file shares. This feature is also supported by SharePoint 2010, but first you’ll need to enable the feature in SQL 2008R2 server, default the FILESTREAM feature is disabled during the SQL 2008 installation.
To enable FILESTREAM feature on SQL Server 2008:
- Open SQL Server Configuration Manager (Start > Programs > Microsoft SQL Server 2008 > Configuration Tools > SQL Server Configuration Manager)
- Navigate to the SQL Server Services node and select the SQL Server instance you want to modify SQL Server (MSSQLSERVER)
- Click the FILESTREAM tab and select the checkboxes to enable FILESTREAM and enter a share name for the files, as shown
Featured blog @ Blogsearchengine
Just got my blog reviewed by the Blogsearchengine, read what they have to say about this blog:
iDocs is for the IT professional who does not have to ask what SharePoint and SQL mean. This group offers SharePoint consulting services, and they have the distinction of being a registered Microsoft partner. With iDocs, clients can be assured of highly experienced and knowledgable consultants.
In their blog, they share some of their technical knowledge for free. Any individual who may have need of specific information such as SQL Maintenance Plan SharePoint 2010 databases, dealing with specific errors, and setting up configurations. This is really all highly technical, but the people who work in this field or are clients who have a hands on approach will certainly appreciate the blog.
Furthermore, if you want the pros to get the job done for you, the guys at iDocs are easily reached via the contact form in their blog. They guarantee that you will be a satisfied customer!
(2 votes, average: 4.00 out of 5, rated)
SQL Maintenance Plan SharePoint 2010 databases
SQL Maintenance Plan SharePoint 2010 databases
To maintain good overall databases performance of the SharePoint 2010 databases I use the following SQL maintenance plan. This plan consist of two main parts:
- The configuration of each separate databases and database properties settings
- The automated maintenance plan, to perform database maintenance task once a week.
Please note: For most of the SQL tweaks to perform on a LIVE SQL database you will need the Enterprise edition of SQL 2008 R2. Otherwise you need to put the databases offline before executing the maintenance plan as described in the article.
Databases Types
SharePoint 2010 has three types of databases:
- System/Configuration databases (do not include these databases in the maintenance plan)
- Service Application databases
- Content Databases
Powershell created databases
I always create SharePoint databases with a powershell script and not with the default auto-provisioned functionality. The advantages of this approach are:
- guaranteed control over database names (no GUIDs in the database names)
- guaranteed control over database sizing
- procedural separation of control over application and data environments
Data Integrity
To prevent database corruption we need to protect the SharePoint databases. There are two kinds of database corruption:
- Physical corruption, might occur when the disk that holds a log file or data file has been altered. This type of physical corruption tends to affect sectors on a disk due to problems in the I/O subsystem, such as the physical network hardware and disk drives themselves.
- Logical corruption is caused by data being altered in some unanticipated way that severs a data relationship. This type of corruption usually is caused by an application error or human error that causes data problems but doesn’t affect the physical structure of the database.
To prevent and detect any kind of databases corruption issue I use the SQL function DBCC_CHECKDB in the maintenance plan. The only downside is that if any error occurs from this check the only solution will be to restore the database from a backup.
Managing Database files
The recommendation for the SharePoint SQL environment is to place log files and data files on different disks and to ensure that no other application uses those disks. This setup minimizes overall write access to the disks, and lessens the opportunities for file fragmentation.
Measuring and Reducing database index Fragmentation
Index fragmentation can result in performance degradation and inefficient space utilization, and indexes may become quickly fragmented on even moderately used databases. In SharePoint 2010 a table that often becomes fragmented is AllDocs, which contains document libraries, their associated documents and lists and list items, and their respective metadata.
SQL Server Fill Factor
The fill factor of each SharePoint databases needs to be set to default. Default the way the database fill factor defines how much free space is required on a database page during an index rebuild before moving to a new database page. Otherwise the database takes more database space because the database pages are larger. Instead we sill set the default fill factor for the whole SQL server, a server-wide setting of 80% is optimal to support growth and minimize fragmentation.
Shrinking Databases
SQL Server 2008R2 has the ability to shrink data files, which recovers disk space by removing unused data. The best way is not to set the shrinking of the databases in SharePoint to automatically shrink the data files.
Also not to configure a maintenance plan that does it automatically on a SharePoint database. The reason is that the database auto-shrink ignores the fill factor setting and causes all the indexes to become fragmented. Then, when you run a rebuild indexes command, the database grows back to its original size.
Instead of auto-shrinking databases on SQL, it’s safer to partition content databases or to remove data from existing databases on SharePoint 2010 level.
Recommended Database Maintenance plan for SharePoint 2010
All tasks to prevent the issues that can occur are being automated within a SQL 2008 R2 maintenance plan. Normally I will schedule this maintenance plan for once a week but in some environments (where there are a lot of changes in the SharePoint environment) you can choose to execute the maintenance plan more often.
1. The maintenance plan contains the following steps:
- Remove excessive transaction log file fragmentation by ensuring the appropriate recovery model and backup schedule.
- Turn off any scheduled shrink operations to reduce the risk of unnecessary index fragmentation.
- Put a regular process in place to detect and remove index fragmentation.
- A process to run DBCC CHECKDB.
- A maintenance plan should include either index reorganization or index rebuilding (never use both).
- Update Statistics
2. The configuration of each database:
- Turn on AUTO_CREATE_STATISTICS and AUTO_UPDATE_STATISTICS, and have a regular process in place to update statistics.
- Turn on instant file initialization such that database auto-growth is an instantaneous operation rather than a slow operation that requires zero-filling new space.
- Place Database and log files on different SAN disks.
- Set auto-growth correctly by using a predetermined set file size rather than a percentage. Follow this up by periodically examining database sizes and determining whether manual database growth is necessary to ensure optimum performance.
- Turn on page checksums.
PowerShell error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
When you run SharePoint management powershell on your SharePoint 2010 server you get the following error:
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
Solution:
Make sure the logged in user has the correct rights to the SharePoint_Configuration database
- SharePoint_Shell_Acces or:
- DB_reader or DB_writer
Use the following Powershell cmdlet to give this user the correct databases permissions, since Direct database changes are not supported by Microsoft: Add-SPShellAdmin (http://technet.microsoft.com/en-us/library/ff607596.aspx)
Blog Categories
Categories
- Blog (35)
- Configuration (9)
- Customers (7)
- MOSS 2007 posts (42)
- News (4)
- PowerShell (9)
- SharePoint 2010 posts (20)
- SQL 2008 (2)
- Windows 2008R2 (2)
Tags
Recent Posts
- iDocs steunt team 2Dakar
- Enable FILESTREAM on SQL Server 2008R2
- Featured blog @ Blogsearchengine
- SQL Maintenance Plan SharePoint 2010 databases
- PowerShell error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
- Error starting a scheduled SQL 2008R2 Agent Job
- Access denied: Business Data Connectivity
- SharePoint 2010 Won’t Open PDFs on client
- SharePoint 2010 Error (in CoreResultsWebPart::OnInit) when searching
- SharePoint PowerShell Backup Script with Windows Scheduler
What I'm Doing...
- @BertPaarhuis @dennisme toch een Ducati: http://t.co/k3nFPSEF <-- een monster en italiaans, niks meer aan doen! in reply to BertPaarhuis 1 week ago
- I liked a @YouTube video http://t.co/YnygoK5R Hagenbeck dierenpark tierpark Hamburg 2012 2 weeks ago
- I liked a @YouTube video http://t.co/wAfst8PH Legoland Highlights Miniland - Billund - Denemarken 2012 2 weeks ago
- @2dakarteam dat gaat goed! Weer twee punten van het lijstje af. ;) in reply to 2dakarteam 3 weeks ago
- @FeroZandhappers een seeed grps shield icm fez panda II. http://t.co/5TrTLhGX 3 weeks ago
- “@2dakarteam: Paarhuis is druk bezig met een Google Maps wrapper, die de GPS info op de website plaats...” <-- altijd handig! :) 2012-04-19
- I liked a @YouTube video http://t.co/YCL0hJhf Raccoons eating fruit 2012-04-11
- @BertPaarhuis @KoosPaarhuis @havelterfeest @MarjoleinSoer <-- Have fun!! in reply to BertPaarhuis 2012-03-31
- @2dakarteam Eerste dozen verband, gaasjes, etc. zijn binnen voor de med. kliniek in Fatoto. @MarjoleinSoer @AnniePaarhuis bedankt! <-- Super 2012-03-28
- Building a webapp in #php long time ago. But all for a good cause. #2dakar ;) 2012-03-23
- “@2dakarteam: Opweg om de kniptang in de kabelboom te zetten en het imperiaal te verwijderen (sorry Ronald)...” lang leve de ductape!! ;) 2012-03-19
- @2dakarteam de velgen worden zo steeds duurder. Briljant! :-) in reply to 2dakarteam 2012-03-19
- @JeffNagelNow thanks!! in reply to JeffNagelNow 2012-03-17
- Dagje sleutelen in Deventer #dakar 2012-03-17
- “@BertPaarhuis: Op naar de SharePoint World Tour bij MS in Amsterdam...” <- Have fun! ;) 2012-03-13
- @2dakarteam echt super! Dit is pas het echte motor gevoel. Ja 1000 km inrijden. in reply to 2dakarteam 2012-03-11
- Zo, eerste 150km staat alweer op de teller. #moto #guzzi. 2012-03-11
- My lucky number 7 :-) #Moto Guzzi V7 Racer. http://t.co/XrvHmwyC 2012-03-10
- Pick up my new motor today, a #Moto #Guzzi V7 Cafe-Racer with an Arrow exhaust. Saying goodbye to my #Triumph Daytona. http://t.co/AljuZiTP 2012-03-10
- India 2012 - New Delhi, Jaipur & Haridwar Ganges River: http://t.co/Pn9CjKRJ via @youtube 2012-03-07
- More updates...
Posting tweet...







(2 votes, average: 4.00 out of 5, rated)


