Dim objConn
Dim rs
Dim vntChunk,vntMemoFld
set objConn = CreateObject("ADODB.Connection")
objConn.Open "Provider=OraOLEDB.Oracle;Data Source=ORACLEDB; USER ID=xxx; Password=xxx"
set rs=objConn.execute("SELECT * FROM BACDBA.CBIACIS_BIBLIO WHERE CBIACNO='CB-100910'")
'Creating FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
'filename = InputBox("Enter the file name you want to create")
Set demofile = fso.CreateTextFile("C:\q\vbs\cbiac\cbiac.xml")
demofile.WriteLine("<?xml version='1.0' encoding='ISO-8859-1'?>")
'GetChunk
vntChunk = rs("CBIACNO").GetChunk(4000)
vntMemoFld = vntChunk
Do Until IsNull(vntChunk) = True
vntChunk = rs("CBIACNO").GetChunk(4000)
vntMemoFld = vntMemoFld & vntChunk
Loop
demofile.WriteLine("<CBIACNUM>")
demofile.WriteLine (vntMemoFld)
demofile.WriteLine("</CBIACNUM>")
Hi!
Could you take a look at this code for me??
I have connection but I am getting an error at here:
vntChunk = rs("CBIACNO").GetChunk(4000)
"CBIACNO" is varchar2 dataype(size 1800)from the oracle database.
I get this operation is not allowed in this context.
code:800a0c93
source:adodb.field
Dim rs
Dim vntChunk,vntMemoFld
set objConn = CreateObject("ADODB.Connection")
objConn.Open "Provider=OraOLEDB.Oracle;Data Source=ORACLEDB; USER ID=xxx; Password=xxx"
set rs=objConn.execute("SELECT * FROM BACDBA.CBIACIS_BIBLIO WHERE CBIACNO='CB-100910'")
'Creating FileSystemObject
Set fso = CreateObject("Scripting.FileSystemObject")
'filename = InputBox("Enter the file name you want to create")
Set demofile = fso.CreateTextFile("C:\q\vbs\cbiac\cbiac.xml")
demofile.WriteLine("<?xml version='1.0' encoding='ISO-8859-1'?>")
'GetChunk
vntChunk = rs("CBIACNO").GetChunk(4000)
vntMemoFld = vntChunk
Do Until IsNull(vntChunk) = True
vntChunk = rs("CBIACNO").GetChunk(4000)
vntMemoFld = vntMemoFld & vntChunk
Loop
demofile.WriteLine("<CBIACNUM>")
demofile.WriteLine (vntMemoFld)
demofile.WriteLine("</CBIACNUM>")
Hi!
Could you take a look at this code for me??
I have connection but I am getting an error at here:
vntChunk = rs("CBIACNO").GetChunk(4000)
"CBIACNO" is varchar2 dataype(size 1800)from the oracle database.
I get this operation is not allowed in this context.
code:800a0c93
source:adodb.field