' creating a datadabse object
Set dobj = createobject("adodb.connection")
'opening aconnecting
dobj.open("dsn=mydsn;username=;password=")
'executing a query and getting a record set
set rs = dobj.execute("select * from Table1")
' printing the values of the record set
do while (not rs.EOF)
columns = rs.Fields.Count
For i=0 To columns-1 Step 1
MsgBox rs.Fields.Item(i).Value
Next
rs.movenext
loop
' closing the data base
dobj.Close
Hi Your Blog is very nice!!
ReplyDeleteGet All Top Interview Questions and answers PHP, Magento, laravel,Java, Dot Net, Database, Sql, Mysql, Oracle, Angularjs, Vue Js, Express js, React Js,
Hadoop, Apache spark, Apache Scala, Tensorflow.
Mysql Interview Questions for Experienced
php interview questions for freshers
php interview questions for experienced
python interview questions for freshers
tally interview questions and answers
codeingniter interview questions
cakephp interview questions
express Js interview questions
react js interview questions
laravel Interview questions and answers
Excellent post. I learned a lot from this blog and I suggest my friends to visit your blog to learn new concept about technology.
ReplyDeleteBlue Prism Training in Chennai
Blue Prism Training Institute in Chennai
UiPath Training in Chennai
Robotics Process Automation Training in Chennai
RPA Training in Chennai
Data Science Course in Chennai
Blue Prism Training in Adyar
Blue Prism Training in Porur