I'm successfully able to connect to my database with the following method, however I have a connection string stored in my web.config that I obviously would rather use than this way where the credentials are exposed in code. However I haven't found a good way to do this. WebMatrix gives me a fatal connection error of 18 and I don't know how else I can do this off the top of my head.
Any ideas?
