SSIS DTEXEC Package Variable Space Character Not Accepted -
After
I am trying to run an SSIS package on SQL 2005 using the following:
< Pre> dtexec / sql "\ MyPackageName" / server mssql1 / MAXCONCURRENT "-1" / checkpointing off / set "\ Package.Variables [FileFolder] .Value", "\\ SomeServer \ Someshare \ output batch \" < / Code> This yield:
The option "batch" is not valid.
At the end of the word batch inside quotation marks, the location has given me an indication that it is probably treating the last backslash as an escape character. So I tried it like this:
dtexec / sql "\ myPackageName" / server mssql1 / MAXCONCURRENT "-1" / checkpointing off / set "\ Package.Variables [FileFolder] .Value "; "\\\\ SomeServer \\ Someshare \\ Output Batch \\"
This package is allowed to run, but this variable is the name of a FlatFile name for the production data When used in, it now returns the following error:
WARNING: 2010-07-27 14: 36: 38.23 Code: 0x8007007B Source: Data flow work flat file destination [72] Description: The filename, directory name, or volume label syntax is incorrect. End Warning Error: 2010-07-27 14: 36: 38.23 Code: 0xC020200E Source: Data Flow Task Flat File Destination [72] Description: Can not open the data file "\\\\ Some servers \\ SomShare \\ Output Batch \ flatfile . Text". End error
What gives? Error message in error message list, after a word batch, a single backslash indicates that only backslash can be done. is influenced.
Some tests prove that due to a strange reason, when the last character of a package variable should be a backslash, the SSIS needs to double it, it also applies when using the GUI and Type "SQL Server Integration Services Package" on a job selection and click on the "Set Prices" tab.
The last working order was to back up the backslash. Off / SET "\ Package.Variables [FileFolder] .Value"; "\\ SomeServer \ SomShare Output Batch \" "
with the last double-backslash.
Comments
Post a Comment