I get the following error when trying to add a Successful SQL 2000 ActiveX VB script. I'm rewriting from SQL 2000 to 2005, but i get the following error when trying to parse.
ActiveX Script Task An error occurred while creating the ActiveX scripting host. Verify that the scripting host is installed properly.
I've checked on google but all I get is the error code. DTS_E_AXTASKUTIL_SCRIPTHOST_CREATE_FAILED
The Windows Script 5.6 is installed on the server.
1. Im also not to sure if it's my code but it works in 2000. (below is the code i use to test - simple delete file)
2. Language : VB Script Language. Script : below code EntryMethod : Blank - I'm not to sure if this mus be blank dont really know waht to put in.
Please anyone help on a solution! Thank You
Function Main() sFile = "c:\source\Daily Sales.asc" Set oFSO = CreateObject("Scripting.FileSystemObject") If oFSO.FileExists(sFile) Then oFSO.DeleteFile sFile, TRUE End If Main = DTSTaskExecResult_Success End Function