Search This Blog

Wednesday, 21 May 2014

Test SQL IO Performance

Hi,

Here is how to test your SQL IO Performance. This basically just test your hard drive IO so don't actually have anything to do with SQL.
Download SQLIO
http://www.microsoft.com/en-za/download/details.aspx?id=20163

Then install it on the SQL Server
Browse to it in command prompt as Administrator.

*****Do no do this on Production*****

Now for the default test you can just type in SQLIO but that wont help you much, you want to specify your different hard drives in your SQL Server, change the file size ex...
This will better explain it: https://www.youtube.com/watch?v=aF2_rmyrbLU

Here is a good article i got most of my info from:
http://blogs.msdn.com/b/sqlmeditation/archive/2013/04/04/choosing-what-sqlio-tests-to-run-and-automating-sqlio-testing-somewhat.aspx

Copy and Paste from the MSDN blog for easy ref for myself so all credit to Joseph

1. Create 2 Param.txt files in the SQLIO folder. One that uses a single thread and one that uses multiple threads. Call them ParamST.txt and ParamMT.txt
ParamST.txt contents might look like this: G:\testfile.dat 1 0x0 500
ParamMT.txt contents might look like this: G:\testfile.dat 8 0x0 500

2. Copy the text below and paste it into a text file.
echo ****** Read Tests *****
sqlio -kR -s300 -frandom -o8 -b8 -LS -FparamMT.txt > Reads8KRandom8Oustanding.txt
timeout /T 10
sqlio -kR -s300 -frandom -o8 -b64 -LS -FparamMT.txt > Reads64KRandom8Oustanding.txt
timeout /T 10
sqlio -kR -s300 -frandom -o8 -b512 -LS -FparamMT.txt > Reads512KRandom8Oustanding.txt
timeout /T 10
echo ****** Write Tests *****
sqlio -kW -s300 -frandom -o8 -b8 -LS -FparamMT.txt > Writes8KRandom8Outstanding.txt
timeout /T 10
sqlio -kW -s300 -frandom -o100 -b256 -LS -FparamST.txt > Writes256KRandom100Outstanding.txt
timeout /T 10
sqlio -kW -s300 -frandom -o200 -b256 -LS -FparamST.txt > Writes256KRandom200Outstanding.txt

2. Then save the text file as SQLIOTest.bat in the folder that contains SQLIO.EXE and you are ready to go
3. Just run SQLIOTest.bat from Command Prompt



Now to analyse the data:

You can do something like this and parse the data into excel...I am not going to do that.
http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/05/25/parsing-sqlio-output-to-excel-charts-using-regex-in-powershell.aspx

As far as i can gather from some research(Correct me if im wrong), the important info in the reports is the IOPS and MB/sec. The idea is to run this before you make a change and then again after you finished to see what the performance penalty is.

Hope this it helpful!








Wednesday, 14 May 2014

What SQL Components are installed

Hi, here is a quick way to see what SQL Components are installed on a Server.

Open the SQL Server Installation Center


Then go to tools and Installed SQL Server features discovery report.
This will generate a report.

Production:

Dev:




Wednesday, 7 May 2014

Nintex 2013: Conditional start is not working on a Document Library

Hi,
Had this issue where a document workflow does not want to start when the document is edited and there is a conditional start in play.

Got this in the ULS logs:
Error processing item updated event.: System.ArgumentException: New instances of this workflow template are currently disallowed.

We renamed the Nintex workflow a while ago and that changes the workflow with the old name to unpublished.


Delete the workflow with the old name from "Unpublished", this fixed the error for me.

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.