dbTalk Databases Forums  

Looping

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


Discuss Looping in the microsoft.public.sqlserver.dts forum.



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

Default Looping - 10-01-2003 , 11:38 AM






i am using the example from sqldts.com (link below).

but when i enter a unc path into the global variable and
the fso object function FolderExists returns a false.
There are no permissions issues.

http://www.sqldts.com/Default.aspx?246


Reply With Quote
  #2  
Old   
JI
 
Posts: n/a

Default Meant as reply to Allan Mitchells reply to DTS/FSO/UNC - 10-01-2003 , 11:49 AM







Quote:
-----Original Message-----
i am using the example from sqldts.com (link below).

but when i enter a unc path into the global variable and
the fso object function FolderExists returns a false.
There are no permissions issues.

http://www.sqldts.com/Default.aspx?246

.


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

Default Re: Meant as reply to Allan Mitchells reply to DTS/FSO/UNC - 10-01-2003 , 04:02 PM



"JI" <jidawgs (AT) hotmail (DOT) com> wrote in news:045201c3883b$f0483d60
$a301280a (AT) phx (DOT) gbl:

Quote:
-----Original Message-----
i am using the example from sqldts.com (link below).

but when i enter a unc path into the global variable and
the fso object function FolderExists returns a false.
There are no permissions issues.

http://www.sqldts.com/Default.aspx?246

.


This works for me

Function Main()

dim fold
dim fso

set fso = CREATEOBJECT("Scripting.FilesystemObject")

msgbox fso.FolderExists("\\Myserver\My$\MyShare\")


Main = DTSTaskExecResult_Success
End Function


This also works

Function Main()

dim fold
dim fso

set fso = CREATEOBJECT("Scripting.FilesystemObject")

msgbox fso.FolderExists(DTSGlobalVariables("MyFolder").Va lue)


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





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.