Hi all,
I have a vbscript task that connects to a database and creates a text file... I am getting an error when the script tried to create the connection.
---------------
Error code 0
Error Source = Microsoft VBScript runtime error
Error Description: ActiveX component can't create object 'ADODB.connection'
----------------------------
The code is:
Function Main()
Dim fso,fil,txtStr,conObj,rsRst
set conObj = CreateObject("ADODB.Connection"
set rsRst = CreateObject("ADODB.Recordset"
...
If I run the DTS package from my computer it works fine. However, if I run from the server, the script fails. It seems there is a reference or some dll that it is trying to use?
Any ideas on the cause of this issue, or how I could fix it?
Best regards,
MDA
I have a vbscript task that connects to a database and creates a text file... I am getting an error when the script tried to create the connection.
---------------
Error code 0
Error Source = Microsoft VBScript runtime error
Error Description: ActiveX component can't create object 'ADODB.connection'
----------------------------
The code is:
Function Main()
Dim fso,fil,txtStr,conObj,rsRst
set conObj = CreateObject("ADODB.Connection"
set rsRst = CreateObject("ADODB.Recordset"
...
If I run the DTS package from my computer it works fine. However, if I run from the server, the script fails. It seems there is a reference or some dll that it is trying to use?
Any ideas on the cause of this issue, or how I could fix it?
Best regards,
MDA