Search This Blog

Monday, 14 April 2014

What is Governance?

Governance is something everyone speaks about but what is it...

This site is very helpful:
http://www.thesharepointdude.com/governance-rules/

As in the site...Governance is a set of rules and policies about your portal.

Who is responsible for what.

Have a look at that site. There is also a template.

Monday, 31 March 2014

SQL: Move TempDB to dedicated drive

Hi,

Best practice is to use a dedicated fast disks for your tempDB.
The TempDB DB gets used by all the Databases as far as i can understand so there can be quite a load on it.

A 15Gb drive should be enough.
It is much easier to change the TempDB file location at installation but this is a step lots of people don't do.
Would even be better if you can split the TempDB's LDF and MDF files over different drives but this all depends on your budget.

When i talk different drives i talk about different spindle power...Different VHD's on the same hard drive defeats the purpose of this exercise

Script:
USE master
GO
ALTER DATABASE TempDB MODIFY FILE(NAME = tempdev, FILENAME = 'G:tempdb.mdf')GOALTER DATABASE TempDB MODIFY FILE(NAME = templog, FILENAME = 'E:templog.ldf')GO

After this restart SQL and you are all-done

Wednesday, 12 March 2014

An operation failed because the following certificate has validation errors. The root of the certificate chain is not a trusted root authority..

Hi,
Just had a stressful few hours but error is now resolved...
Had this error:

An operation failed because the following certificate has validation errors:\n\nSubject Name: The root of the certificate chain is not a trusted root authority..


Basically anywhere where you try and open a infopath form you got an data source error saying access was denied and you must look on the Application log.

The application log was full of the errors above. Also in the ULS Logs.

Everywhere i searched pointed me to Trusted Root Authorities and "Manage Trust" under SharePoint Central Admin...Nothing worked...

Then this error popped up once:

Insufficient SQL database permissions for user 'Name: domain\Username SID: S ImpersonationLevel: None' in database '' on SQL Server instance. Additional error information from SQL Server is included below.

The EXECUTE permission was denied on the object, database, schema 'dbo'.

The user in the error was the SharePoint installer account which was suspicious. The error are in the logs for other users.

We compared the security rights in SQL for the user to QA and it only had Public access rights.
Added SecurityAdmin and DBCreator and after a IISReset is was working again.

Got no idea how the rights might have changed but at least it is solved now.

Hope this helps you.

Thursday, 6 March 2014

Change the order of your Office Infomation Panel

Hi,

i Like to have the mandatory fields of my Information Panel first. Here is according to me the easiest way to change the order.

Open you Library and go Library Settings:

Then Click on Document Information Panel settings and "Create a new custom Template"
This will open InfoPath and after you click finish on InfoPath it will open your Panel...
Move around and do what you want to do and then save(to local machine) it and publish it.


and click publish on the next window and then close.

Wednesday, 26 February 2014

SQL: Drop SQL Connections

Hi,

Trying to restore a SQL DB or getting the message that there are active connections

Run these scripts to drop the connections:

This will set it offline, Before you can restore you will need to take it online again, if i remember correctly...
USE master
GO
ALTER DATABASE YourDatabaseName
SET OFFLINE WITH ROLLBACK IMMEDIATE
GO
Ok, here is one way to do it fr now, will add some more when/if i need it.

Wednesday, 19 February 2014

Add Multiple Document Templates to a Library

Hi,

Here is how to add multiple document templates to a library.

Select Yes for Allow Management of Content Types under:
Library Settings -> Advanced




Then Go to Site Settings -> Site Content Types -> Create
Type a Name and description.
Under "Select parent content type from" select -> "Document Content Types"
Under Parent Content Types select "Documents"
i Prefer to use a Existing group called "Custom Content Types" under groups.


Click OK.

Then you can set the Document template.
Go to Advanced under the Site Content Type page which opens after you clicked OK in the last step.
The you can upload your new template on this screen.


Then go to Library Settings  -> Content Types and select "Add from Existing Site Content Types"

Select the Content type you just created and click Ok
And that is it. You will now have an additional Template under the new document Drop Down.









Monday, 17 February 2014

How to identify a site template

Hi,
To Export and Import a Site you need to create the destination site with the same template as the source.
Run this to find out what template the source is.

$web = get-spweb http://your url
$web.WebTemplateId
Your site template will be here
$web.WebTemplateId
The Template ID will be here


Here is a list of the templates
http://blogs.technet.com/b/araviraj/archive/2008/06/18/sharepoint-templates-types.aspx
Thanks Araviraj