• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2112
  • Last Modified:

SQL 2005 DTS to SSIS command line parameters

I have this command line which i am trying to convert from DTS to SSIS

SET @command_line = ' /Ser SRV21  /U "***" /P "*****" /SQ "Archive Data" /Set "Account_Number":"8"="' + @account_number + '"

/Set "File_Name":"8"="C:\Inetpub\wwwroot\output\' + @account_number + '.mdb" /Set "Begin_Date":"7"="' +

@begin_date + '" /Set "End_Date":"7"="' + @end_date + '" '



What am i missing here ?
0
karthikram
Asked:
karthikram
  • 4
  • 2
1 Solution
 
J2811Commented:
maybe care to share what is the error message, and what component of DTS contains that line?

how are you converting the DTS?

more info needed for informed advice.

regards,
0
 
karthikramAuthor Commented:
it says the account number i enter is wrong. I have converted the modules without any isses just that the command line
does not work very well.
0
 
imran_fastCommented:
Need more information about what you were doing?
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
karthikramAuthor Commented:
Ok,
  With the above command i pass three parameters account number, begin and end date . I managed to get the correct format using the Ececute Pakage utility with SSIS .

This is the updated command line string

/DTS "\File System\Archive Data" /SERVER SRV21 /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING EW  /SET "Account_Number";"'00001'" /SET "File_Name";"' C:\Inetpub\wwwroot\output\'" /SET "Begin_Date";"'04/03/2006'" /SET "End_Date";"'04/04/2006'"
0
 
karthikramAuthor Commented:
ok forgot to add the error

Microsoft (R) SQL Server Execute Package Utility
Version 9.00.1399.06 for 32-bit
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

Started:  9:52:49 AM
Warning: 2006-04-05 09:52:51.58
   Code: 0x80012018
   Source: Archive Data
   Description: The configuration entry, "Account_Number", has an incorrect form
at because it does not begin with the package delimiter. Prepend "\package" to t
he package path.
End Warning
Warning: 2006-04-05 09:52:51.58
   Code: 0x80012017
   Source: Archive Data
   Description: The package path referenced an object that cannot be found: "Acc
ount_Number". This occurs when an attempt is made to resolve a package path to a
n object that cannot be found.
End Warning
DTExec: Could not set Account_Number value to '00001'.
Started:  9:52:49 AM
Finished: 9:52:51 AM
Elapsed:  2.172 seconds
0
 
J2811Commented:
I am no expert but,

Erm, not entirely sure, but there are already some suggestion in the error description that you posted, please let know if you have tried it,

being,

1. Prefix Account_Number with your package name? For example, package name is ABC, do a "ABC.Account_Number"?
2. Prepend "\package" to the pacakage path?

Have you tried the above?

0
 
karthikramAuthor Commented:
I tried number 2 but didnt actually work, I will try the 1st option
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now