Encoding bcp

I.am using Oracle Migration workbench to migrate data from a SQL Server 2000 to Oracle 8.1.7
When I run bcp_extract.bat to extract data from SQL Server in database I have "Andrés" and in the Dat file i get "Andr‚s"
Could you help me to resolve this problem of encoding
Thanks, Sebastian

Normally bcp the Microsoft utility used to extract the data from SQL Server respects the codepage / character set of the SQL Server database. Maybe there is some environment setting affecting the bcp utility?
I would look into the SQL Server docs, and see if there is a command option, I think it is -C that would allow you to specify a code page, so that the data can be extracted correctly.
Donal

Similar Messages

  • Convert from ISO 8859-1 encoding to UTF-8

    Hi
    My Os name is 'SunOS ut51109 5.10 Generic_144500-19 sun4v sparc SUNW,T5440'.
    I want to change the encoding of the existing .bcp file from ISO 8859-1 to UTF-8 with out using any temp files as these .bcp file will be pointed by an external table.
    here is the command I issued in the script(ksh file)
    iconv -f ISO8859-1 -t UTF-8 file1.bcp > file1.bcp
    After the script got executed file1 is empty(showing 0 bytes).
    Please correct me or let me know the syntax to be followed to write the data into the same file in UTF-8 format.
    Thanks
    kartheek

    You cannot do conversion from ISO 8859-1 to UTF-8 in-place because the UTF-8 version will generally be longer (unless you convert a pure ASCII file, which does not need conversion in the first place). Therefore, you would have to overwrite what you have not read yet. Instead, convert to a new file with a temporary name, drop the original and rename the temporary back to original. This is not that complicated.
    If the problem is that you want to overwrite a file already open by the database, then rename the incoming file first and then convert copying to the target.
    -- Sergiusz

  • BCP queryout -w generating wrong CSV File

    I'm trying to generate a CSV file with BCP. My problem is that I have some NVARCHAR columns so I must use the parameter -w for the bcp utility. So, the CSV file generated is opening in a single column in EXCEL. If I create a new text file copy the content
    of the CSV generated and paste in the new file and then change its type to CSV it works and open the content spread in different columns. Has someone seen it before? Thanks
    SET @File = 'MyQuery.csv'
    set @SQL = 'bcp "SELECT FirstName, LastName, DwellingName FROM Table" queryout "' + + '" -w -t "," -T -S '+ convert(varchar,@@ServerName)
    exec master..xp_cmdshell @SQL

    Hi,
    I agree with you. It seems the text was attached with some text attribute when generated by BCP. When I copy the content to Notepad, I notice each rows were enclosed in double quotes. Image:
    The double quotes make Excel think it is a unit. If I remove the double quotes and import the data to Excel, it will copy the text to separate columns.
    1. On the Data tab, in the Get External Data group, click From Text. And follow the instructions in the
    Text Import Wizard.
    2. Under Original data type, choose Delimited, click Next.
    3. Select Tab. I can review the data in the bottom of the dialog box. Then, Next.
    Another option is to query the results to file and save it as csv file. Use the Text Import Wizard to import the csv file into Excel. Select Space option in the step 3.
    Thanks.
    Tracy Cai
    TechNet Community Support
    Hi Tracy,
    I've found a solution for my problem:
    I've used the -CACP to generate the CSV file ANSI Encoded and it works!!!
    Now my command looks like: 
    SET @File = 'MyQuery.csv'
    set @SQL = 'bcp "SELECT FirstName, LastName, DwellingName FROM Table" queryout "' + + '" -c -CACP -t "," -T -S '+ convert(varchar,@@ServerName)
    exec master..xp_cmdshell @SQL

  • ERROR LOADING bcp -w option generated data files

    Hi,
    I have to migrate data from SQL Server to Oracle.
    The unload_script is this:
    bcp "CLEPSIDRA.dbo.InversionesAceptadas" out "[CLEPSIDRA].[dbo].[InversionesAceptadas].dat" -q -c -t "<EOFD>" -r "<EORD>" -Usa -Pas -STIEPO
    When I execute the load script, the data is loaded ok.
    But I have a field that contains character like á,é,ñ,...so I changed my unload script to:
    bcp "CLEPSIDRA.dbo.InversionesAceptadas" out "[CLEPSIDRA].[dbo].[InversionesAceptadas].dat" -q -w -t "<EOFD>" -r "<EORD>" -Usa -Pas -STIEPO
    If I execute the new unload_script, the data file generated is ok, with the characters like á,é,ñ...
    But when I trying to execute the load script, I have errors like 'field is not a valid number..'...
    But if I open the first (-c option generated) data file and replace it's content with the content of the second (-w option generated) data file and save it, the load script works ok!
    How can I solve this?
    Thanks

    Hi user616069,
    There is a preference in SQLDeveloper for encoding.
    Tools->Preferences->Environment->Encoding
    Do you have a reproducible test case you can give us a URL to, including for example a single fictional record?
    -Turloch

  • SF & MS SQL Integratio​n using MS SQL BCP connector

    Hi
    I am trying to integrate SF with MS SQL using MS SQL BCP connector provided in Boomi, but getting the following error:
    Unable to store data, error copying stream.; Caused by: com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output; Caused by: Invalid null character in text to output
    I think this is an issue iwth the encoding formats of MS SQL, Atom and the connector profile. The atom's & connector profile's encoding has been changed to UTF-8 and still face the same issue.
    Has anyone faced this before? Am i missing something?

    Hi
    I am trying to integrate SF with MS SQL using MS SQL BCP connector provided in Boomi, but getting the following error:
    Unable to store data, error copying stream.; Caused by: com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output; Caused by: Invalid null character in text to output
    I think this is an issue iwth the encoding formats of MS SQL, Atom and the connector profile. The atom's & connector profile's encoding has been changed to UTF-8 and still face the same issue.
    Has anyone faced this before? Am i missing something?

  • UTF16 equivalent of Control A as delimiter in BCP

    Hi,
    I'm creating data extract using BCP which will be consumed by Hive. Hive by default understands Control A (0x01) as delimiter. When I create bcp output in -c mode and provide 0x01 as delimiter and try opening it, I can read the output file in notepad.
    However when I use wide character format in bcp (-w option), and provide 0x01 as delimiter, the file shows me garbled data when I open it in notepad. Hive can not consume the data as well.
    My source data has Unicode characters and so I need to use -w switch in queryout. How can I let it have Control A as delimiter? I tried with the UTF 16 equivalent (0X0001) but that does not seem to work.

    Hi,
    The bcp utility bulk copies data between an instance of Microsoft SQL Server and a data file in a user-specified format. According to your description, you want to use bcp to export data to Hive file, In Hive file, by default Control A (0x01) can as a delimiter.
    However, if you use –w performs the bulk copy operation using Unicode characters, by default,
     it uses nchar as the storage type, no prefixes, \t (tab character) as the field separator, and \n (newline character) as the row terminator. If you want to change field terminator, you can use –t
    switch to specify the field terminator for all the fields except the last field in the row and using the
    -rswitch to specify a row terminator.
    By default, I recommend you use the field terminator with character values not greater than 127 or less than 32 for avoiding character encoding problems between Hive file and bcp.
    There is detail about characters supported as terminator.  You can review it.
    http://msdn.microsoft.com/en-us/library/ms191485.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Adobe media encoder error in photoshop

    Hi everyone!This morning i have tried to render a video timelapse in photoshop but it showed to me an error which says:''Could not complete the render video command because of a problem with Adobe Media Encoder''.Could anyone tell me how can i fix this error?

    Nobody can tell you anything without proper system info or other technical details like exact versions, render settings, details about the source files and so on.
    Mylenium

  • Filename in Media Encoder CC

    Hello there ;-)
    In After Effect CC u can render picture sequences using a filname like: "Project_[#####].jpg". The [#####] is replaced by the framenumber when rendering. When i render a picture sequenc in Media Encoder CC i Don´t have that oportunity. It allways starts with a Number like 000001. My Question - is it possible to change that in the encoder? So that i have the Frame number in the filename like in After Effect CC? If yes - how? I haven´t find anything!
    THANX for your help!

    I have this issue too. It makes After effects impossible to use with media encoder.  What we want is the actual frame number from After effects
    Example
    I have a 5000 frame AE export.
    I can export the lot from AME
    Render0000.png - Render5000.png
    Client makes a change to Frames 4500-5000
    Try and render Work area to AME
    Result = Render0001.png -  Render0499.png
    The only way to keep file numbers is to use AE's render Queue which seem to be way slower than AME?

  • Conversion of XML file from ANSI to UTF-8 encoding in SAP 4.6C

    Hi All,
      Im working on SAP 4.6C version.I have generated a XML file from my custom report.It is downloading in ANSI format.But i need to download this into UTF-8 format.So can anyone please let me know how to do this?
    Is this possible in 4.6C version?
    Thanks in Advance,
    Aruna A N

    Hello
    It is possible in 4.6.
    Try this code:
    REPORT Z_TEST_XML_DOWN .
    data:
      lp_ixml type ref to if_ixml,
      lp_xdoc type ref to if_ixml_document,
      lp_sfac type ref to if_ixml_stream_factory,
      lp_ostr type ref to if_ixml_ostream,
      lp_rend type ref to if_ixml_renderer,
      lp_enco type ref to if_ixml_encoding.
    data:
      lp_root type ref to if_ixml_element,
      lp_coll type ref to if_ixml_element,
      lp_elem type ref to if_ixml_element.
    class cl_ixml definition load.
    data:
    udat like lfa1,
    s type string.
    select single * from lfa1 into udat where lifnr = '0000000001'. " <- set here real number
    *** create xml
    lp_ixml = cl_ixml=>create( ).
    lp_xdoc = lp_ixml->create_document( ).
    lp_root = lp_xdoc->create_simple_element( name = 'Node'
                                              parent = lp_xdoc ).
    s = udat-land1.
    call method lp_root->set_attribute( name = 'country_name'
                                        value = s ).
    s = udat-name1.
    call method lp_root->set_attribute( name = 'vendor_name'
                                        value = s ).
    s = udat-ort01.
    call method lp_root->set_attribute( name = 'city_name'
                                        value = s ).
    *** render xml
    types: begin of xml_tab_line,
             line(256) type x,
           end of xml_tab_line.
    types: xtab type table of xml_tab_line.
    data: t_xml type xtab,
          size type i,
          rc type i.
    lp_sfac = lp_ixml->create_stream_factory( ).
    lp_ostr = lp_sfac->create_ostream_itable( table = t_xml ).
    lp_enco = lp_ixml->create_encoding( character_set = 'utf-8'
                                   byte_order = if_ixml_encoding=>co_none ).
    call method lp_ostr->set_encoding( encoding = lp_enco ).
    lp_rend = lp_ixml->create_renderer( ostream = lp_ostr
                                        document = lp_xdoc ).
    rc = lp_rend->render( ).
    *** export to file
    size = lp_ostr->get_num_written_raw( ).
    call function 'WS_DOWNLOAD'
      exporting
        bin_filesize = size
        filename = 'c:\sapxml_test.xml'
        filetype = 'BIN'
      tables
        data_tab = t_xml
      exceptions
        others = 1.
    It is just simple example.

  • Media Encoder CC mpeg2 Question

    Basically what the title says. Where exactly is the option to format a video into an mpeg2 file? I've been Googling this to death. I know I've seen some people say they had it, then it disappeared. But I literally just downloaded Media Encoder and its nowhere to be found. Even under the DVD and Blue-ray section, the only options are for Blue-ray. I need to burn a wedding video onto a DVD. Is there something special you have to do to get this done? Are there limits on the free trial version that don't allow mpeg2 downloads? Help!

    Are you using AME CC 2014?  MPEG2 is included in AME under more strict license than other formats and is only activated only if you have Premiere Pro CC 2014, AfterEffects CC 2014 or Prelude CC 2014.  If you are using them under a free trial, MPEG2 becomes unavailable after a trial period expires.  After a trial has been expired, AME CC 2014 can be used extra 30 more days, but without MPEG2. 
    If you already used up a trial period, you can either 1) install one of three apps I mentioned earlier that you haven't installed before and activate it as a trial or 2) purchase a subscription for Creative Cloud.  #1 option allows you to use MPEG2 30 more days.  With #2 option, you can use MPEG2 as long as you keep your subscription active.  I hope this helps.

  • Media Encoder CC

    I have the Adobe Creative Cloud on the new Mac Pro. Now I can no start the Media Encoder. Am I the only one who has the problem?
    Can anyone help me?

    Hi Media Encoder CC,
    Welcome to the Forums.
    Please follow the KB Article provided below and check whether it resolves your issue or not.
    http://helpx.adobe.com/creative-cloud/kb/ame-premiere-crash-launch-export.html
    Regards,
    Vinay

  • Media encoder cc export issue

    i got a user that have issue export with media encoder
    when she encode she get this error
    any idea
    Thanks

    Any one ?

  • Media Encoder CC won't launch

    I've been succesfully working with media encoder for sometime now but it won't start for some reason. Using Mac OS 10.6.8, icore 7 proc, 16gb RAM, Encoder CC 6.0.2 what's causing this?

    Thanks, It started working after I logged into my Adobe account. Curious if that had anything to do with it. I also tried a few options (similar to this) I found in the forum which didn't help until I restarted. Not sure which one did it but it's all good now. Thanks!
    cid:E05335EC-C91D-4503-A609-511A1CD6F2EE
    Randy Cates | Video/Motion Graphics
    800.440.1088
    14287 N. 87th St. Suite 220
    Scottsdale, AZ 85260
    Fax: (480) 949-2427
    cid:81ED8132-3DE8-4E8D-973C-64CDC5BC8985<http://www.facebook.com/shurwest>  cid:A3749390-E4AB-4976-BE58-B02192E9077F <http://www.twitter.com/shurwest>   www.shurwest.com<http://www.shurwest.com/

  • Media Encoder CC 14 renders with black frame at the end

    Hello,
    my Media Encoder running on Mac Yosemite makes a black frame at the end of h264 clips...
    How can i fix this?
    Thanks

    I just figured out - it might be a quicktime viewer problem...

  • Media Encoder CC  won't render Magic Bullet Denoiser II

    Hello there,
    i've got the following Problem: I am having Premiere CC and used the Red Giant Plug-In Denoiser II on my last project, when i import this project to the Media Encoder and select Quicktime for output, the Media Encoder won't render the clip with this Plug-In. i always get the original files out, without the denoiser. Original footage from in premiere is 2,5k CinemaDNG RAW from the Black Magic Cinema Camera.
    thx

    I feel like there was a recent update to the RG plugins (inside of the last 30 or so days.) Are they up to date?

Maybe you are looking for

  • Default due date , payment method when posting invoice with Special G/L

    Hi Gurus, I have a question is when I am posting an invocie to a vendor (FB60), Due On date, payment method  are automatically calculated based on the defaulted baseline date and the payment term in the vendor master. But when I am posting the invoci

  • Installation and Administrative rights

    If PPro CS5.5 is installed on a PC (actually Production Premium CS 5.5) and then administrative rights are taken away - how will this affect functionallity of the software? Our IT department is "standardizing" our laptops and they want to take away a

  • I just bought a Canon fx100.

    I'm using iMovie to edit footage. How do I convert the video files from my new camera,  MXF to .mov I found a free trial of a converter called Pavtube but it takes ages and the footage isn't very clear, as well as the program being difficult to use.

  • Problem reinstalling the Adobe reader on Mac?

    I had problems with my current version and tried to delete the program and re-install a new version.  After I deleted the program my attempt at installing the program fails.

  • Backflushing serialised components with REM

    Hi guys, I am aware of OSS note 100621 and therefore I know that SAP do not provide a process for backflushing serialised components in REM!   However, I was wondering whether there is a bespoke alternative or work-around process for backflushing ser