2 solutions

Solution 1

No-one is going to write you a sample application. It's better to use Entity Framework, just add an edmx file and point it to your DB. Once you've done that, the connection string will be in your web.config, and you can change it if you like.