CharlesWhiteman
Registered User.
- Local time
- Today, 20:35
- Joined
- Feb 26, 2007
- Messages
- 421
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.
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.
Code:
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