G
Guest
Hi everyone,
I'm a VB6 developer who has recently installed Visual Studio 2005 and I want
to get my hands dirty with VB.NET 2005! I'm struggling with database
connections, and I mean floundering!
Most of the examples I've found have been using forms and controls but I
would like to do it all in code. You could set up a connection and recordset
very easily in classic ADO so I don't suppose it's that hard but I'm stuck.
All I want to do is create a connection to a SQL database, query a table (any
table) and then set the value of a string variable with the value of a field
in my returned records.
Can anyone give me a basic example to set me on my way?
I would really appreciate it.
Thanks in advance for any help
Paul
I'm a VB6 developer who has recently installed Visual Studio 2005 and I want
to get my hands dirty with VB.NET 2005! I'm struggling with database
connections, and I mean floundering!
Most of the examples I've found have been using forms and controls but I
would like to do it all in code. You could set up a connection and recordset
very easily in classic ADO so I don't suppose it's that hard but I'm stuck.
All I want to do is create a connection to a SQL database, query a table (any
table) and then set the value of a string variable with the value of a field
in my returned records.
Can anyone give me a basic example to set me on my way?
I would really appreciate it.
Thanks in advance for any help
Paul