SQL job running DTEXEC.EXE via PowerShell step produces wrong characters in result tables. Running the same DTEXEC.EXE in PowerShell x86 window produces correct results.

I've created a package in SSDT (Visual Studio 2012) to import DBF tables into MSSQL 2014 via a wizard.
Source DBF files contain tables with Russian (Cyrillic) characters in records fields.
Created package works fine, produces correct results (imports Cyrillic characters as needed) while:
•debugging in VS2012
•deploying package in SSISDB and running the package via PowerShell x86:
&"c:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\DTExec.exe" /Server "server\mssql2014" /ISServer "\SSISDB\import\Integration Services Project16\Package1.dtsx";
But when I create a SQL Agent job with a single PowerShell step that contains the same command and run the job it produces wrong characters in resulting tables. So, the problem is in wrong code page (or encoding). The correct tables with records are
produced and job runs without errors.
I tried
chcp 1251; # 855, 866 -- all of them
&"c:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\DTExec.exe" /Server "server\mssql2014" /ISServer "\SSISDB\import\Integration Services Project16\Package1.dtsx";
in SQL Agent PowerShell step, but with no positive result.
Anyone encountered such a behavior? How to fix it?
v

What if you run this package without PowerShell?
Arthur My Blog

Similar Messages

  • Did a clean install 10.9.4. on a stock Fusion HD.  When I run "diskutil list" via Terminal, everything is wrong.  I have "EFI" and "apple Boot Boot OSX in every dev/disk** How do I fix? Any help would be much appreciated, thank you

    Did a clean install 10.9.4. on a Apple Stock 1TB Fusion Hard Drive.  When I run "diskutil list" via Terminal, everything is wrong.  I have "EFI" and "apple Boot Boot OSX" in every dev/disk**  Everything is out of place, How can I repair? Im willing too reformat if need be, however thats what I did in the first place.  Any help would be much appreciated, thank you.
    I know this cannot be correct
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         121.0 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         999.3 GB   disk1s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk1s3
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Fusion                 *1.1 TB     disk2
    /dev/disk7
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                                                   *121.9 GB   disk7

    It appears as if my startup disk has been reversed and not using the fusion ssd portion as it should.  At least its now reversed as to what it used to be originally before.  the 128gb ssd used to be on top.  Is my mac booting fusion correctly?  Thank you for responding as I was about to reformat.
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group C2619AFE-0EB5-4721-8C50-3F3DBA520D1B
        =========================================================
        Name:         fusion
        Status:       Online
        Size:         1120333979648 B (1.1 TB)
        Free Space:   114688 B (114.7 KB)
        |
        +-< Physical Volume 583AAEA9-E333-4A83-9BE3-E937396E9248
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk0s2
        |   Status:   Online
        |   Size:     120988852224 B (121.0 GB)
        |
        +-< Physical Volume B0C1CB16-D46F-4387-A679-B55392BB7934
        |   ----------------------------------------------------
        |   Index:    1
        |   Disk:     disk1s2
        |   Status:   Online
        |   Size:     999345127424 B (999.3 GB)
        |
        +-> Logical Volume Family FB42B9F4-CB77-4162-831B-7DCB7816E760
            Encryption Status:       Unlocked
            Encryption Type:         None
            Conversion Status:       NoConversion
            Conversion Direction:    -none-
            Has Encrypted Extents:   No
            Fully Secure:            No
            Passphrase Required:     No
            |
            +-> Logical Volume C0B8479B-C51C-45BF-B59B-1AA5DF3A3B83
                Disk:                  disk2
                Status:                Online
                Size (Total):          1111826497536 B (1.1 TB)
                Conversion Progress:   -none-
                Revertible:            No
                LV Name:               Fusion
                Volume Name:           Fusion
                Content Hint:          Apple_HFS
    FoHeazys-Mac-mini:~ FoHeazy$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         121.0 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         999.3 GB   disk1s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk1s3
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Fusion                 *1.1 TB     disk2

  • HT4972 i am not getting notification on most of my apps, e.g twitter and facebook...except i go to the app and refreshed manually. its an iphone 4 and running on ios5...i have gone through everything and its still the same..help please........I seem to be

    i am not getting notification on most of my apps, e.g twitter and facebook...except i go to the app and refreshed manually. its an iphone 4 and running on ios5...i have gone through everything and its still the same..help please........
    I seem to be having the same problem on my brand new iPhone 4S. Everything was working fine on the phone until I updated to iOS 5.1.1, but now I no longer receive push notifications for the native Mail app, Instagram, or the Facebook app. I still seem to be receiving SMS texts and iMessages via push, but the aforementioned apps need to be opened before I can receive missed notifications (having them open in the background seems to make no difference).
    Thanks for any help that you may provide!

    did you try notifications under settings? You can customize it as per your requirement, for each application.
    check this out: http://www.gottabemobile.com/2011/10/12/ios-5-how-to-use-notification-center/ or http://reviews.cnet.com/8301-19512_7-20120625-233/ios-5-notifications-a-deeper-l ook/

  • WCF-SQL table operation on tables with the same name.

    Hello,
    My situation involves generating table operation schemas (Insert, Update, Delete, Select) for tables in two different SQL databases.  These tables happen to have the same name.  For the sake of discussion lets call the tables dbo.Customer.  However,
    these tables have different fields in them.  When generating the schemas to be used by BizTalk, they end up as the same message type like so:
    Database1: http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/Customer#Update
    Database2: http://schemas.microsoft.com/Sql/2008/05/TableOp/dbo/Customer#Update
    To my understanding, I can't simply change the namespaces or root nodes to be unique since this structure is expected by the SQL Adapter (shown here: https://msdn.microsoft.com/en-us/library/dd788023.aspx).  I had a couple thoughts on a solution: 
    Use schema versions to differentiate between the two different table schemas.
    Use a unique namespace and root node for the schemas.  Then, create a custom pipeline component to modify them to the standard as it is sent to SQL server.
    Modify the schema so support both tables with all columns in both tables.
    I don't really like any of these solutions, so I am hoping somebody in the community has run into this situation before and has something better.
    -Richard

    You don't really have to do anything other than make sure the particular message gets routed always to the correct database.
    Having duplicate MessageType's is only a problem if you're relying on the automatic resolution of the XmlDisassembler and that would only be a concern on the Response side.
    To get around that, just create a custom Pipeline with the XmlDisassembler and set the Document Schemas list to only the one for that Port.

  • The icons on the dock (and some other places) sometimes appear in low resolution, I'm running Lion on my iMac and Snow Leopard on my Macbook pro, got the same problem on both, anyone?

    A few days ago I noticed that safari icon was in "low resolution", so then I deleted and put a new one in place, but after tahat I've been notice that otheres are doing the same, on my macbook pro (running snow leopard) the things are worse, sometimes even the shortcuts to applications and downloads show with the same problem. Could this be a virus???

    Likely a corrupted cache file
    Read the
    Deeper cache cleaning/resetting
    https://discussions.apple.com/docs/DOC-3046

  • Cant open web pages when connected to the internet via Telstra's Pre Paid WiFi has anyone else had the same issues works fine with BigPond WiFi

    Cant open web pages when connected to the internet via Telstra's Pre Paid WiFi (this connection is working on other devices) has anyone else had the same issues, works fine with BigPond Wifi

    and now, when i tried to check again my network preference below the airport tab is showing a message that
    "my airport does not have an IP address and cannot connect to the internet!"
    then after seconds it will goes back to the first message that
    "airport has the self assigned IP address etc....."
    i don't know whats going on now!
    airport tab is not showing green color anyway! i'ts always in yellow!
    i tried turning it on and off but nothing happen! HEEELLLLPP!!!!

  • I get a message that my Apple account has been disabled. I go through the steps to reset it, but I still get the same message

    I log into ITunes with a User ID and Password that worls. When I try to purchase a song or an App I get a message that my Apple ID has been disbaled. When I follow the steps for resetting the ID I get the same message.

    Contact itunes support.

  • When i charge my ipod it runs out of battery in about an hour. Icharged overnight and did the same thing is there anyway i can fix this?

    When I charge my Ipod it runs out of battery in 40 minutes. I charged overnight and lasted a little over an hour. How can I solve this problem. My Ipod is still under warranty.

    You can try the standard fixes to rule out a software problem:
    - Reset. Nothing will be lost
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restorefrom backup
    - Restore to factory defaults/new Pod
    If still problem then time for an appointment at the Genius Bar of an Apple store.  If defective, yoand not abouses, you hould walk out with a replacement.

  • I do not get the signal that is advertised or stated by your coverage maps, or sales people.  I am getting sick and tired of the Verizon run-around.  My next step is to submit a formal complaint to the FCC and my state Better Business Bureau.  I will also

    Verizon service is rapidly declining.  In addition, the provided service is not as advertised.  This is fraud by any standard.

    They have what is called heat maps which give a reasonable indication of QOS quality of service. I am also beset by reception problems. well I have bad news for you any type of wireless service is predicated of "best effort" meaning they try best to deliver service to as many paid subscribers in service area. They figure their statistics based of how many service workers great  ok and lastly outliers like me and you. You raise a case to state regulator or local that you feel your community has been targeted by bias in heat maps & why it should be fixed. It might work or might not. A better effort is to take your case to FCC. If you can prove there is favoritism in delivery of service to your community then they will deal with verizon but the FCC isn't going to pay much attention if your a crank and keep pestering them . My angle has been to keep plugging away at it explain business reasons of why they need to extend service but being respectful to Verizon. Keeping pressure on them maybe even helping them if local community is biased against adding cell tower or other Red tape . Give them benefit of doubt too they may be hampered by community or local state justification that just wont grant any service improvements.

  • Need help in SQL Query: Update a row in a table & insert the same row into another table

    I want to update a row in a table say Table A and the updated row should be inserted into another table say Table B. I need to do it in a single SQL query and i don't want to do it in PL/SQL with triggers. And i tried with MERGE statement but its working with this scenario. (Note: I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0).
    Thanks in Advance.

    Using Sven's code as an example, you could save the updated row in a sql plus variable. (also untested):
    SQL> var v_id number
    update tableA  
    set colB='ABC' 
    where colC='XYZ' 
    returning id into :v_id;
    insert into table A_History (ID, colA, colB, ColC)  
    select id, ColA, ColB, ColC  
    from tableA  
    where id = :v_id;   

  • Displaying the ResultSet from and sql database into a java Table in the sam

    i seriously need help in displaying the contents of my sql database into a table im my java application when someone types a query into a field provided..
    thanks guys !!

    What kind of help do you need.
    Are you stuck at some point of your code?
    Is you code not working?
    Or do you want us to write the code?

  • Cannot access rented movies via Clear USB Internet connection, but can via wifi and Time Warner Cable.  Has anyone encountered the same thing?

    I recently rented a movie from iTunes (version 10.4.1.10 on a Windows 7 professional laptop) and when I am at home, on my Clear USB connection, I don't see the Rented Movies in my Library.  When I bring my laptop to work however, and connect to a Time Warner Internet connection via wifi, I am able to see my Rented Movies in my Library.  Has anyone experienced anything similar?

    The problem is similar to
    https://discussions.apple.com/message/16594202#16594202
    and
    https://discussions.apple.com/message/16881706#16881706
    which have not been resolved either.

  • Last time I synced my iPhone to the computer via iTunes it deleted my iPhone bookmarks (I dont have the same bookmarks on phone and computer) how do I ensure that the bookmarks that are on both don't get deleted just added

    Thr bookmarks that I lost I don't need or want on my home computer and so had deleted them previously from the computer. When I synced it took them Off the iPhone. I am afraid to sync again!

    Connect your Device to Computer.
    Select your iPhone under "Devices" on the left Pane.
    On the right Pane, select INFO tab.
    Scroll down to "SYNC Bookmark with" make sure the box is checked. Then select your browser bookmark.
    Scroll down to bottom and click the "SYNC" or "APPLY" button.

  • SSIS Package compiled successful, in SQL Server Integration Service package executed sucessful, But fail to run in MS SQL Job Scheduler

    Hi Everyone,
    I having a problem to transfer data from MS SQL 2005 to IBMAS400. Previously my SSIS was running perfectly but there is some changes I need to be done in order for the system to work well. Considers my changes are minimal & just for upgrades (but I did
    include DELETE statements to truncate AS400 table before I insert fresh data from MS SQL table to the same AS400 table), so I compile my SSIS package & it run successfully & I passed it into MS SQL Integrated Service as 1 of the packages & manually
    executed the package & the result is the same, that mean it was successful again but when I try to run it in a MS SQL Job Scheduler, the job failed with these message shown below as extracted from the job View history. 
    Date today
    Log Job History (MSSQLToAS400)
    Step ID 1
    Server MSSQLServer
    Job Name MSSQLToAS400
    Step Name pumptoAS400
    Duration 00:00:36
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: MSSQLServer\SYSTEM. ... 9.00.4035.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    
    Started:  today time  
    Error: on today time     
    Code: 0xC0202009     Source: SSISMSSQLToAS400 Connection manager "SourceToDestinationOLEDB"     
    Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. 
    Error code: 0x80004005.  An OLE DB record is available.  
    Source: "IBMDA400 Session"  
    Hresult: 0x80004005  
    Description: "CWBSY0002 - Password for user AS400ADMIN on system AS400SYSTEM is not correct ".  End Error  
    Error: today     
    Code: 0xC020801C     
    Source: Data Flow Task OLE DB Destination [5160]     
    Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "DestinationClearData" failed with error code 0xC0202009.  There may be error messages posted before
    this with more information on why the AcquireConnection method ca...  The package execution fa...  The step failed.
    So I hope somebody can shed some hints or tips for me to overcome time problem of mine. Thanks for your help in advance. As I had scoured thoroughout MSDN forums & found none solution for my problem yet. 
    PS: In the SQL Integrated Services when I deployed the package I set the security of the packages to Rely on server... 
    Hope this will help.

    Hi Ironmaidenroxz,
    From the message “Executed as user: MSSQLServer\SYSTEM”, we can see that the SQL Server Agent job ran under the Local System account. However, a Local System account doesn’t have the network rights natively, therefore, the job failed to communicate with
    the remote IBMAS400 server.
    To address this issue, you need to create a proxy account for SQL Server Agent to run the job. When creating the credentials for the proxy account, you can use the Windows domain account under which you executed the package manually.
    References:
    How to: Create a Credential
    How to: Create a Proxy
    Regards,
    Mike Yin
    TechNet Community Support

  • Is there a way to install exe of a vi on an XP machine without LV run-time and not have to restart?

    Hi,
    I need to deploy an application that reads channels from a FP module for testing purposes. The problem is, I cannot restart the system I need to install this on because it is running critical control software which cannot be interrupted. The system does not have the labview run-time engine and I know installing this requires a restart of XP probably due to registering DLLs or something.
    I'm using "Fieldpoint Network Read" to read from the module. The simple answer would be to simply install this on a machine on the same network that I can restart. However, I have no such luxury because I am connecting to the system in question over a long distance VPN connection and I need to be able to poll the data from the FP every 250ms which may be too much for the connection. 
    So basically, I need to find a way to read data from this FP in a manner similar to "FP Network Read" without restarting the system.  Is there any way to do this with labview? Alternatively, I may be able to write this app using LabWindows since I know some software is already running on that machine programmed with that.
    Solved!
    Go to Solution.

    The first thing I'd say is that a restart may not be necessary.  I have in the past installed LabVIEW development environment and when asked I said I would restart later.  Then I opened LabVIEW and started coding.  I'm not sure what it thinks it needs to restart for but it may not be required.
    The other thing I'd like to mention is that LabVIEW 7.1 and older can run EXEs without needing to install a run time engine.  So it is possible to build a EXE in 7.1, then include some files and DLLs in the same directory as the EXE, and when it is ran it will use them.  There's probably issues with talking to DAQ devices without MAX and I have no idea how you address this but it is another possibility.
    Of course you already know the best answer and that is to reboot the system when most convenient.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Maybe you are looking for