Why on earth would the SqlConnection class be missing if I have included the using directive System.Data.SqlClient

As far as I know, if I include the using directive for System.Data.SqlClient, I should be able to use the SqlConnection class (https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection(v=vs.110).aspx). Every time I try to get this to work, it fails. I’ve repaired my installation of Visual Studio 2017 at least twice. I’ve reinstalled everything. Nothing seems to work. What could I possibly be doing wrong?

Any bit of advice helps. Thank you!

submitted by /u/Lake3ffect
[link] [comments]

Leave a Reply