![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- I am exporting my data to a .txt file, and then trying to run VBScript that would open that file and read it. VB script works great outside the DTS if I have the file created. When I run it in DTS it gives me the following error "Permission Denied". Do I have to do anything special??? The .txt file is in the correct location and there. I am using MSSLQ7. Thanks, BB . |
#3
| |||
| |||
|
|
I am exporting my data to a .txt file, and then trying to run VBScript that would open that file and read it. VB script works great outside the DTS if I have the file created. When I run it in DTS it gives me the following error "Permission Denied". Do I have to do anything special??? The .txt file is in the correct location and there. I am using MSSLQ7. Thanks, BB |
#4
| |||
| |||
|
|
-----Original Message----- I do not know what script you are running to execute against the file but here is mine. In the Workflow properties of the datapump task I have "Close Connection On Completion" set. Here is my script Function Main() DIM fso DIM tStream DIM strOutput SET fso = CREATEOBJECT("Scripting.FileSystemObject") IF fso.FileExists("c:\DelMeAfterThis.txt") THEN Msgbox "File Exists" SET tStream = fso.OpenTextFile("c:\DelMeAfterThis.txt",1) msgbox "File open" strOutput = tStream.ReadLine msgbox strOutput ELSE Msgbox "File Not There" END IF Main = DTSTaskExecResult_Success End Function -- -- 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 "branka" <B (AT) nomail (DOT) com> wrote in message news:05ef01c38eaf$fb6f1d10$a401280a (AT) phx (DOT) gbl... I am exporting my data to a .txt file, and then trying to run VBScript that would open that file and read it. VB script works great outside the DTS if I have the file created. When I run it in DTS it gives me the following error "Permission Denied". Do I have to do anything special??? The .txt file is in the correct location and there. I am using MSSLQ7. Thanks, BB . |
![]() |
| Thread Tools | |
| Display Modes | |
| |