You need to make sure that your connection string is correct. For starters, as dotnetom pointed out you need to either use Integrated Security (Windows Authentication) or User ID and Password, not both.
Here's some good information for building connection strings, but I'll give you the basics for what you need.
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring%28v=vs.110%29.aspx
If you are wanting to use a username and password, then you will need to use:
String MyConnection = @"Data Source=<ServerName>;InitialCatalog=<DatabaseName>;User ID=<UserName>;Password=<Password>;";
if you are wanting to use integrated security (Windows Authentication) then you will need to use:
String MyConnection = @"Data Source=<ServerName>;InitialCatalog=<DatabaseName>;Integrated Security=True;";
Replace <ServerName>
and all the others with the information you have. If the server has an instance name, then you will need that in the <ServerName>
. The result would be similar to ServerName\InstanceName
. As long as you are authenticating with windows authentication then you should be able to use Integrated Security=True
and be okay.
If you do in fact need to increase the timeout, you can do so by adding a connection timeout: Connection Timeout=30
. The connection timeout is in seconds.
If you have Microsoft SQL Server Management Studio, I would highly suggest you ensure that your credentials work with the server in question. Try out the username/password combination or the integrated security.
Edit:
To answer your question about whether it's Password= Password
or Password=Password
, you should go with the 2nd option and remove the spaces between. The other way I believe should still work, it's just a little more concise without the spaces.
Here's another great site with example connection strings: Example Connection Strings