Change the connection string.Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.
Replace OdbcConnection with SqlConection
Replace OdbcDataAdapter with SqlDataAdapter
You should find it works, pretty much. That code fragment should, at least.
You will probably have to add:
using System.Data.SqlClient;
At the top of your file.