Just googling a bit would display a lot of pages showing examples.
Assuming that you're talking about Microsoft SQL Server, try this link. Version of SQL server may of course be different, but the steps to follow are practically always the same.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads