Hi, am facing some weird problem as I am running a VBS program (not from ASP) to generate a report to Excel by selecting from a DB.
connString = "DRIVER={Oracle ODBC Driver};DBQ=XXX;UID=xxx;PWD=xxx"
Set conn=WSCRIPT.CreateObject ("Adodb.connection"
conn.ConnectionTimeout = 180
conn.CommandTimeout = 180
conn.Open connString
Set rs = WScript.CreateObject("ADODB.Recordset"
rs.Open sql_str, conn
After calling
sql_str = "select * from POSITION_HOLD"
Set rs = conn.execute(sql_str)
All the numeric fields selected returns 0 when I do as follow:
Total_Investment_unit = rs("POS_T_INVEST_UNIT"
Never faced such a problem before when I am using VBA or ASP.... How do I go about it?
connString = "DRIVER={Oracle ODBC Driver};DBQ=XXX;UID=xxx;PWD=xxx"
Set conn=WSCRIPT.CreateObject ("Adodb.connection"
conn.ConnectionTimeout = 180
conn.CommandTimeout = 180
conn.Open connString
Set rs = WScript.CreateObject("ADODB.Recordset"
rs.Open sql_str, conn
After calling
sql_str = "select * from POSITION_HOLD"
Set rs = conn.execute(sql_str)
All the numeric fields selected returns 0 when I do as follow:
Total_Investment_unit = rs("POS_T_INVEST_UNIT"
Never faced such a problem before when I am using VBA or ASP.... How do I go about it?