Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 ActiveX Script, Verify scripting host is installed

Author  Topic 

ismailc
Constraint Violating Yak Guru

290 Posts

Posted - 2007-07-30 : 10:24:09
Hi,

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

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-30 : 10:42:03
DUPLICATE!
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=87047



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-30 : 10:42:22
Why are you posting same question again?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

ismailc
Constraint Violating Yak Guru

290 Posts

Posted - 2007-07-31 : 02:56:58
Hi,

I was not sure if was on the correct forum.
SQL 2000 to SQL 2005, so i tried both.

My entry Method is blank should it be?

Regards,
Go to Top of Page
   

- Advertisement -