dbTalk Databases Forums  

DTS File Open

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


Discuss DTS File Open in the microsoft.public.sqlserver.dts forum.



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

Default DTS File Open - 12-28-2004 , 05:12 AM






I received from DTS File and related Excel Sheet from my customer. I could
be able to open the DTS File.

It showd a connection between Excel and OLE DB Data Sources.

Then I treied to run this , it says ' Trasform Data Task:Undefined '

Kindly let me know the procedure to run

Am totallay new to this.

Thanks
Krish



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

Default Re: DTS File Open - 12-28-2004 , 05:54 AM






That is perfectly valid.

I presume where you saw this is in the little pop up UI with a list of tasks
to execute?

After the package had run did you see a Green arrow or a red cross ?

The "Transform Data Task:Undefined " is because the designer did not assign
a description to the Transform data task.

You can do this though by double clicking on the black arrow beween the two
connections.


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"RV.Krishnan" <krish (AT) rsi (DOT) ramco.com> wrote

Quote:
I received from DTS File and related Excel Sheet from my customer. I could
be able to open the DTS File.

It showd a connection between Excel and OLE DB Data Sources.

Then I treied to run this , it says ' Trasform Data Task:Undefined '

Kindly let me know the procedure to run

Am totallay new to this.

Thanks
Krish





Reply With Quote
  #3  
Old   
RV.Krishnan
 
Posts: n/a

Default Re: DTS File Open - 12-28-2004 , 06:14 AM



Thanks Allan. It is working now. am able to Execute/setup DTS.......

"RV.Krishnan" <krish (AT) rsi (DOT) ramco.com> wrote

Quote:
I received from DTS File and related Excel Sheet from my customer. I could
be able to open the DTS File.

It showd a connection between Excel and OLE DB Data Sources.

Then I treied to run this , it says ' Trasform Data Task:Undefined '

Kindly let me know the procedure to run

Am totallay new to this.

Thanks
Krish





Reply With Quote
  #4  
Old   
Sonya
 
Posts: n/a

Default Accessing Files through DTS - 12-28-2004 , 10:15 AM



Can anyone assist in troubleshooting this code? I originally had it to move
all *.bak files from one folder to another and it worked. But now I want it
to check the file date before moving the files and if the file date is older
than 10 days then move to the other folder.
But it is not passing the file name.

' Move File
Option Explicit

Function Main()

Dim oFSO
Dim sSourceFile
Dim sDestinationFile
Dim oFile

Set oFSO = CreateObject("Scripting.FileSystemObject")

sSourceFile = "C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\Data\*.bak"
sDestinationFile = "C:\Program Files\Microsoft SQL
Server\MSSQL\BACKUP\Oldbakfiles\"


Set oFile = oFSO.GetFile(sSourceFile)

If oFile.DateCreated < Date Then

oFSO.MoveFile sSourceFile, sDestinationFile

Else
Main = DTSTaskExecResult_Failure
End If



' Clean Up
Set oFSO = Nothing
Set oFile = Nothing


Main = DTSTaskExecResult_Success
End Function

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.