How to connect to mssql database

Can someone give me a tutorial, how to connect to a mssql database from scratch?
Would be nice!