Help getting data from SQL with VB 2005

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top