CharlesWhiteman
12-05-2011, 01:40 AM
Hi All,
I am using the following statements (with the correct namespace references declared) for the following which works fine.
I cannot work out how though to reference the connection string which is correctly referenced in my app.config file.
Any advice most welcome.
Private cs As New SqlConnection("Data Source=L004856\IRISPRACTICE;Initial Catalog=IRIS;Integrated Security=True")
Private da As New SqlDataAdapter("SELECT ClientName, ClientID, InternalID FROM iris.practice.ibvclient WHERE ClientID not like 'Z%'", cs)
Private ds As New DataSet
I am using the following statements (with the correct namespace references declared) for the following which works fine.
I cannot work out how though to reference the connection string which is correctly referenced in my app.config file.
Any advice most welcome.
Private cs As New SqlConnection("Data Source=L004856\IRISPRACTICE;Initial Catalog=IRIS;Integrated Security=True")
Private da As New SqlDataAdapter("SELECT ClientName, ClientID, InternalID FROM iris.practice.ibvclient WHERE ClientID not like 'Z%'", cs)
Private ds As New DataSet