Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving single record from Oracle thru vbscript

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
0
0
US
I have a variable in my vbscript that I need to assign a value from the Oracle db. Assuming I connect to the db and all.

Is this how i retrieve the value

Dim intMonth

strSQL = "select fld from tble where ...."
set rs = db.execute(strSQL)

if rs.eof then
...some code here
else
intMonth = rs("fld")
end if

I know this will work for Access, but is it the same for Oracle?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top