Web Development



Sql Quriery in Visual Basic

By amolsuryansh ·
Software Developer

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by p.j.hutchison In reply to Sql Quriery in Visual Bas ...

You need to use ADO DB (ActiveX Data Objects) components to use sql

Dim con as new ADODB.Connection
Dim cmd as new ADODB.Command
Dim recs as new ADODB.Recordset
Set con=Open "connection string"
cmd.ActiveConnection = con
cmd.CommandText="Select * from MyTable"
Set recs = cmd.Execute

Related Discussions

Related Forums