database - VBScript: Connection to ODBC Fails with error message "Operation is not allowed when the object is closed" -


i have below code, throwing me error "operation not allowed when object closed". missing here?

 dim dbconnect, dbresults   set dbconnect = createobject("adodb.connection")  set dbresult = createobject("adodb.recordset")  dbconnectstring =  "driver=iseries access odbc driver;system=***;uid=***;pwd=***;naming=1" dbconnect.open (dbconnectstring)         mysqlquerry ="select xoorig  fiqdlib.fsfpxo as400xo as400xo.xoefdt = 1130418 , as400xo.xotrsq in (75440)" dbresult.open mysqlquerry, dbconnect 

check connection state wscript.echo dbconnect.state after opened connection. connection string looks off. according this page driver name should in curly brackets.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -