dbTalk Databases Forums  

Import and rename Excel file: No access right

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


Discuss Import and rename Excel file: No access right in the microsoft.public.sqlserver.dts forum.



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

Default Import and rename Excel file: No access right - 11-10-2004 , 07:55 AM






I tried to create a DTS package to import data from a Excel file then rename
the source file.
The step for importing data is ok, but the rename script cause VB runtime
error: no access right.

I used this script to rename the file

Function Main()
Set fs = CreateObject("Scripting.FileSystemObject")
fs.MoveFile "c:\TestDTS\Product.xls", "c:\TestDTS\Producta.xls"
Main = DTSTaskExecResult_Success
End Function

If i execute this step separately it is ok, when it cause problem when i
execute the package.

Anyone help?

Thanks in advance,
Jason



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.