Showing posts with label package. Show all posts
Showing posts with label package. Show all posts

Tuesday, March 27, 2012

Downloads becoming corrupt while use FTP Task

I have a Package that downloads apprx 15 data archives from an FTP site using FTP Tasks.

My problem is that the data contained within these archives (.Z) are becoming corrupt after download/extracting. I have isolated the problem to the FTP File Task by manually downloading the archives myself from IE's built-in FTP client and disabling the downloads in the Control Flow. The Control Flow will then execute the extracting script and continue without any problems.

If I run the Package with the FTP Tasks enabled it will get to a random spot in the validation (I haven't been able to see any consistency with where it errors) of the flat files and error with either a truncation error or a (don't remember exactly what it was) error that talks about an unexpected end in the file. I believe this is because the data has become corrupt and has started skipping/excluding columns. I have opened the flat file and examined it, and sure enough, the data at the end seems to just end.

I have tried setting the FTP Connection to Use Passive Mode in the config file - doesn't work.

So, my question is: Has anyone encountered similar problems? If so, what did you do to fix the problem? I'd really like to use the FTP Task rather than reinventing it with a custom script.Are you downloading these files sequentially to the same local file? If yes, add File System Task that deletes the destination (local) file before downloading to it.

There is a known issue with FTP task - it does not delete the destination file before overwriting it with content of new file. So if one of the files is smaller than than previous one - the file will have garbage from older file in the end. This problem will be corrected by SP2, and the workaround is to delete the local file or use unique local names.sql

Thursday, March 22, 2012

download files in DTS package

Hi!
I need a help!!
How to download files in DTS package?
TanksYour post does not make much sense since it is too terse. What files are you
talking about? Where are you downloading from? What is the purpose of using
the DTS package?
For DTS related issues, there is no other site more resourceful than:
www.sqldts.com
Anith

Download December CTP?

I've got an old package that I need to take a look at in SSIS, but it was built in the December CTP. Is there anywhere I can download this version?
You should be able to open it in the latest build. Did you try?|||Yep, I tried it with the latest CTP and it opened OK.

Thanks Kirk!

Wednesday, March 21, 2012

Downgrade DTS Package

All
Is there a way to downgrade a SQL Server 2000 DTS Package so that it can be
imported into SQL Server 7. If so what is the process to migrate a SQL
Server 2000 DTS Package to SQL Server 7.
ThanksBackwards migration is not supported... You could create a script in SQL 2k
and try to load it,,, fixing any issues that you find... Or you could simply
start from scratch in SQL 7
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
(Please respond only to the newsgroup.)
I support the Professional Association for SQL Server ( PASS) and it's
community of SQL Professionals.
"David" <David@.discussions.microsoft.com> wrote in message
news:143BA10B-AAD6-4A76-B178-726FDA00EB75@.microsoft.com...
> All
> Is there a way to downgrade a SQL Server 2000 DTS Package so that it can
> be
> imported into SQL Server 7. If so what is the process to migrate a SQL
> Server 2000 DTS Package to SQL Server 7.
> Thanks|||Try
save DTS package as Visual Basic file
open in VB and modify the following section of the code
'----
' Save or execute package
'----
goPackage.SaveToSQLServer "SQL7SERVERNAME", "sa", "your SQL 7 sa password"
'goPackage.Execute
'tracePackageError goPackage
'goPackage.Uninitialize
Run the vb program.
Thanks & Rate the Postings.
-Ravi-
"David" wrote:
> All
> Is there a way to downgrade a SQL Server 2000 DTS Package so that it can be
> imported into SQL Server 7. If so what is the process to migrate a SQL
> Server 2000 DTS Package to SQL Server 7.
> Thanks

Downgrade DTS Package

All
Is there a way to downgrade a SQL Server 2000 DTS Package so that it can be
imported into SQL Server 7. If so what is the process to migrate a SQL
Server 2000 DTS Package to SQL Server 7.
Thanks
Backwards migration is not supported... You could create a script in SQL 2k
and try to load it,,, fixing any issues that you find... Or you could simply
start from scratch in SQL 7
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
(Please respond only to the newsgroup.)
I support the Professional Association for SQL Server ( PASS) and it's
community of SQL Professionals.
"David" <David@.discussions.microsoft.com> wrote in message
news:143BA10B-AAD6-4A76-B178-726FDA00EB75@.microsoft.com...
> All
> Is there a way to downgrade a SQL Server 2000 DTS Package so that it can
> be
> imported into SQL Server 7. If so what is the process to migrate a SQL
> Server 2000 DTS Package to SQL Server 7.
> Thanks
|||Try
save DTS package as Visual Basic file
open in VB and modify the following section of the code
'----
' Save or execute package
'----
goPackage.SaveToSQLServer "SQL7SERVERNAME", "sa", "your SQL 7 sa password"
'goPackage.Execute
'tracePackageError goPackage
'goPackage.Uninitialize
Run the vb program.
Thanks & Rate the Postings.
-Ravi-
"David" wrote:

> All
> Is there a way to downgrade a SQL Server 2000 DTS Package so that it can be
> imported into SQL Server 7. If so what is the process to migrate a SQL
> Server 2000 DTS Package to SQL Server 7.

> Thanks
sql

Downgrade DTS Package

All
Is there a way to downgrade a SQL Server 2000 DTS Package so that it can be
imported into SQL Server 7. If so what is the process to migrate a SQL
Server 2000 DTS Package to SQL Server 7.
ThanksBackwards migration is not supported... You could create a script in SQL 2k
and try to load it,,, fixing any issues that you find... Or you could simply
start from scratch in SQL 7
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
(Please respond only to the newsgroup.)
I support the Professional Association for SQL Server ( PASS) and it's
community of SQL Professionals.
"David" <David@.discussions.microsoft.com> wrote in message
news:143BA10B-AAD6-4A76-B178-726FDA00EB75@.microsoft.com...
> All
> Is there a way to downgrade a SQL Server 2000 DTS Package so that it can
> be
> imported into SQL Server 7. If so what is the process to migrate a SQL
> Server 2000 DTS Package to SQL Server 7.
> Thanks|||Try
save DTS package as Visual Basic file
open in VB and modify the following section of the code
'----
' Save or execute package
'----
goPackage.SaveToSQLServer "SQL7SERVERNAME", "sa", "your SQL 7 sa password"
'goPackage.Execute
'tracePackageError goPackage
'goPackage.Uninitialize
Run the vb program.
Thanks & Rate the Postings.
-Ravi-
"David" wrote:

> All
> Is there a way to downgrade a SQL Server 2000 DTS Package so that it can b
e
> imported into SQL Server 7. If so what is the process to migrate a SQL
> Server 2000 DTS Package to SQL Server 7.

> Thanks

Monday, March 19, 2012

Doubt in Transaction Scope

Hi ,

I have 2 packages and they get executed in SQL Job.

Each of these package will have seperate transactions with the Database and I am not sure of how to maintain the transactions between these 2 packages.

Can someone explain me the necessary setting to achieve this. If I set the TransactionOption property to Required (or) Supported in both these packages, will the Transaction Scope of the first package extend to the second one.

For me, If the second package ends up in error, the first package should also have to be rollbacked.

Any suggestions would be of great help.

Thanks

Evan

Are the two packages setup so that one is parent and the other is child?

Otherwise, I'm not sure how you can enforce transactions. If so, then set each to "Required" and be sure to set the FailParentOnFailure property to true in the child so that when it fails, so does the parent.

Tuesday, February 14, 2012

does the XML Task update XML files?

I'm using package configurations to store my server/database name in an XML File. I need to be able to dynamically change the database at runtime when I execute the package. Can I use the XML Task in another package to make a change to that xml file? I'm not familiar at all with XML, so I don't really know the syntax for XPath or XSLT or anything. Basically I'm just looking for an example of how to this with XML, but I haven't found anything on the web to explain this to me. BOL isn't very helpful with the XML Task.
I'm using the June CTP, but also have access to the Sept CTP.
Thanks,
-Andy

If you save the results as a file, yes.
K|||but can I overwrite the source file? Do you have any examples of this or point me to one? I don't see on in BOL or in the Samples that come with the CTP's.
Thanks,
-Andy|||

badandy:

did you ever get over this problem? i have come across the same problem and not sure how to do it. If you did please let me know

Thanks

hegde

does the XML Task update XML files?

I'm using package configurations to store my server/database name in an XML File. I need to be able to dynamically change the database at runtime when I execute the package. Can I use the XML Task in another package to make a change to that xml file? I'm not familiar at all with XML, so I don't really know the syntax for XPath or XSLT or anything. Basically I'm just looking for an example of how to this with XML, but I haven't found anything on the web to explain this to me. BOL isn't very helpful with the XML Task.
I'm using the June CTP, but also have access to the Sept CTP.
Thanks,
-Andy

If you save the results as a file, yes.
K|||but can I overwrite the source file? Do you have any examples of this or point me to one? I don't see on in BOL or in the Samples that come with the CTP's.
Thanks,
-Andy|||

badandy:

did you ever get over this problem? i have come across the same problem and not sure how to do it. If you did please let me know

Thanks

hegde