How to change collation on SQL Server 2014

Open up CMD in C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Binn

Stop SQL Services in services.msc (MSSQLSERVER)

then run go back to cmd and run

sqlservr -m -T4022 -T3659 -s”MSSQLSERVER” -q “Latin1_General_CS_AS”

Advertisements

How to redirect root directory in IIS to something else

Open up IIS install Rewrite module

https://www.iis.net/downloads/microsoft/url-rewrite

then navigate to roo

Your site-> URL Rewrite -> Add new Inboud Blank Rule (This ideally should be first in the top level) then

Requested URL -> Matches the Patter

Using -> Regular Expression

Patter -> ^$

Action -> Action Type – > Redirect
Redirect URL -> Your Site to which you want redirect the root (This can be a sub folder)

Redirect Type (301) Permanent this means that the browser will keep the info and will no need to make a request next time to your server.

Tick  – Stop process other rules.

Enjoy!