Question on querying/retrievning data from Database

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
aqua267
Junior Coder
Posts: 27
Joined: Thu Aug 19, 2010 7:57 pm

Question on querying/retrievning data from Database

Post by aqua267 » Tue Jan 04, 2011 8:57 pm

I am trying to retrieve data from my database.

Let>str=Driver={SQL Server};Server=;Database=;Uid=;Pwd=str,dbH
//dbH returns 1 - Does this imply the connection was established?

Let>SQL=Select top 10 * from Table
DBExec>dbH,SQL,result,numRecs,numFields
MessageModal>numRecs
MessageModal>numFields

//When I print numRecs, numFields - the exact text gets printed, not the numbers.

Please help. Thanks.

aqua267
Junior Coder
Posts: 27
Joined: Thu Aug 19, 2010 7:57 pm

Post by aqua267 » Tue Jan 04, 2011 9:47 pm

Nevermind..I figured it out. I was using DbExec instead of DbQuery.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts