dbTalk Databases Forums  

error connecting to a folder using activex in DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss error connecting to a folder using activex in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fredrik
 
Posts: n/a

Default error connecting to a folder using activex in DTS - 09-12-2003 , 09:54 AM






I'm trying to run this activex script from a DTS package:

option Explicit

Function Main()

Dim oFS

Dim vFileList

Set oFS = CreateObject ("Scripting.Filesystemobject")

Dim sPath

Dim oFiles

sPath ="\\<ip-adress>\Folder\"

set oFiles = oFS.GetFolder (sPath)

set oFS = Nothing

Main = DTSTaskExecResult_Success

End Function



The path I refer to is on another domain then the machine that runs the DTS.
When I run this locally (which is also on another domain) it runs without
problems, but when it's being run by the SQL server agent on the SQL server
it fails due to user rights ("error: Path not found").

I have tried to map the drive it is trying to contact on the SQL server
while logged on as SQL server agent, but without any luck.





Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: error connecting to a folder using activex in DTS - 09-12-2003 , 10:07 AM






Have a look at this

http://support.microsoft.com/?kbid=269074

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"fredrik" <fredrik.hagelund (AT) dmhuset (DOT) no> wrote

Quote:
I'm trying to run this activex script from a DTS package:

option Explicit

Function Main()

Dim oFS

Dim vFileList

Set oFS = CreateObject ("Scripting.Filesystemobject")

Dim sPath

Dim oFiles

sPath ="\\<ip-adress>\Folder\"

set oFiles = oFS.GetFolder (sPath)

set oFS = Nothing

Main = DTSTaskExecResult_Success

End Function



The path I refer to is on another domain then the machine that runs the
DTS.
When I run this locally (which is also on another domain) it runs without
problems, but when it's being run by the SQL server agent on the SQL
server
it fails due to user rights ("error: Path not found").

I have tried to map the drive it is trying to contact on the SQL server
while logged on as SQL server agent, but without any luck.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.