Sql Quriery in Visual Basic

By amolsuryansh ·
Software Developer

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
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

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums