SQL Connection Syntax Error
Hello everyone,
I have been using a guide that goes along with the Microsoft VB Virtual Labs for using ADO to access SQL. When I enter the this code:
Code:
mySqlConnection = New SqlConnection(System.Configuration.ConfigurationSettings.AppSettings.Get("ConnectionString"))
I am using visual studio 2005 express, and it basically tells me that that syntax is old and this is the new syntax:
Code:
System.Configuration!system.configuration.Configurationmanager.AppSettings.Get()
in replace of the previous code. I have tried working with that, but then I get the message that system.configuration! cannot be using as an expression because it is a namespace, I have tried playing around with this code for quite awhile but cannot come up with anything.
Any help would be greatly appreciated,
- Matt