Cannot connect to SQL server

I am trying the demo, I have key in all the correct credential to connect to my selected database. When pressing next, error of 

Connection to the databasename database on the server servername failed. Possible resason are: ....

Could anyone guide me as to what I may have done wrong?