We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

SQL 2005 DTS to SSIS command line parameters

karthikram
karthikram asked
on
Medium Priority
2,189 Views
Last Modified: 2012-05-05
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 ?
Comment
Watch Question

Commented:
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,

Author

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.
Top Expert 2006

Commented:
Need more information about what you were doing?

Author

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'"

Author

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
Commented:
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?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
I tried number 2 but didnt actually work, I will try the 1st option
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.