SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 ActiveX Script, Verify scripting host is installed
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ismailc
Constraint Violating Yak Guru

South Africa
290 Posts

Posted - 07/30/2007 :  10:24:09  Show Profile  Reply with Quote
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

Sweden
30282 Posts

Posted - 07/30/2007 :  10:42:03  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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

Sweden
30282 Posts

Posted - 07/30/2007 :  10:42:22  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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

South Africa
290 Posts

Posted - 07/31/2007 :  02:56:58  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000