A
Arlan
Im a little new to VB 2005 and have been trying to get some data from a
SQL database. What I want to do is get the information during
From_Load. I have found how to setup the connection to the database
but I have no idea how to get information from it. Here is my code so
far:
Dim sqlConn As New
SqlClient.SqlConnection("server=testDBServer;uid=XXX;pwd=XXX;database=DB1;")
sqlConn.Open()
Select * From VA_Data
sqlConn.Close()
I get a line under the Select part of the code. Can anyone tell me
what im doing wrong here?
Any and all help will be greatly appreciated!
Thanks,
Arlan
SQL database. What I want to do is get the information during
From_Load. I have found how to setup the connection to the database
but I have no idea how to get information from it. Here is my code so
far:
Dim sqlConn As New
SqlClient.SqlConnection("server=testDBServer;uid=XXX;pwd=XXX;database=DB1;")
sqlConn.Open()
Select * From VA_Data
sqlConn.Close()
I get a line under the Select part of the code. Can anyone tell me
what im doing wrong here?
Any and all help will be greatly appreciated!
Thanks,
Arlan