How can I transfer a XML file content to a MS SQL database by stored procedure using LabWindows/CVI SQL Toolkit?

Hi,
I have a problem to transfer a XML file content to a MS SQL database by a given/fixed stored procedure. I'm able to transfer the content of the file by using following method ...
hstmt = DBPrepareSQL (hdbc, EXEC usp_InsertReport '<Report> ..... </Report>');
resCode = DBExecutePreparedSQL (hstmt);
resCode = DBClosePreparedSQL (hstmt);
... but in this case I'm not able to fetch the return value of the stored procedure! 
I have tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL) but I miss a datatype for xml?!?
Any idea how to solve my problem?
KR Cake  
Solved!
Go to Solution.

After some additional trials I found a solution by calling the stored procedure in this way
DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_STORED_PROC);
DBPrepareSQL (hdbc, "usp_InsertReport");
DBCreateParamInt (hstmt, "", DB_PARAM_RETURN_VALUE, -1);
DBCreateParamChar (hstmt, "XMLCONTENT", DB_PARAM_INPUT, sz_Buffer, (int) strlen(sz_Buffer) + 1 );
DBExecutePreparedSQL (hstmt);
DBClosePreparedSQL (hstmt);
DBGetParamInt (hstmt, 1, &s32_TestId);
where sz_Buffer is my xml file content and s32_TestID the return value of the stored procdure (usp_InsertReport(@XMLCONTENT XML))
Now I face the problem, that DBCreateParamChar limits the buffer size to 8000 Bytes.
Any idea to by-pass this shortage??

Similar Messages

  • How can i transfer the xml files between different systems?

    hello
    the appearance of xml enable the inter-communication between differences systems.but
    i don't know how,such as following scinario:
    in the client side,we use the console that is written by using c#,if i finish
    filling the text boxes that are within the console,click the submit button,the
    console will generate a xml format document.i want the other application that
    is written by using jsp and servlet and deployed in weblogic server to receive
    the xml document,then process the document.
    but i don't know how i can transfer the xml files between the two applications
    that is written in different languages? can i use http protocol?
    thanks for any helps!

    Yes, you can use the HTTP protocol as a transport for the XML message, this
    is basically what the HTTP binding for SOAP does. The key is using a
    packaging mechanism that different applications will understand, otherwise
    only your own applications will know how to extract and process the XML
    messages you send between them.
    "zbcong" <[email protected]> wrote in message
    news:3e68318e$[email protected]..
    >
    hello
    the appearance of xml enable the inter-communication between differencessystems.but
    i don't know how,such as following scinario:
    in the client side,we use the console that is written by using c#,if ifinish
    filling the text boxes that are within the console,click the submitbutton,the
    console will generate a xml format document.i want the other applicationthat
    is written by using jsp and servlet and deployed in weblogic server toreceive
    the xml document,then process the document.
    but i don't know how i can transfer the xml files between the twoapplications
    that is written in different languages? can i use http protocol?
    thanks for any helps!

  • How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    In iTunes with your iPhone connected, click on the iPhone device, select the Apps tab, scroll down to the File Sharing section and pick an app that plays Quicktimes ("Files Connect" works in this example, but I'm open to suggestions of better apps for playing transferred Quicktimes) and drag your Quicktime from Finder to the Documents pane for the File Sharing app.   Once the file transfer is complete, go to the app on your iPhone to play the Quicktime.

  • How can I transfer all my files from Mavericks Thunderbird to Mavericks Mail

    How can I transfer all my files from Mavericks Thunderbird to Mavericks Mail?
    Bonjour,
    C'est ma première intervention aussi je ne sais pas si je peux m'exprimer en français.
    Je tente!
    Lors du passage à Maveicks, j'ai basculé sur Thunderbird car je ne souhaitais pas utiliser POP mais Mail ne le permettait pas (du moins je n'ai pas réussi)
    Aujourd'hui, je souhaite revenir sur Mail et, pour celà, je dois rapatrier toutes mes données de messagerie depuis Thunderbird.
    J'utilise Imap et, pour gérer ma messagerie, j'ai créé des boîtes aux lettres dans Local Folsders
    Le passage par Eudora ne fonctionne pas avec Mavericks.
    L'import de boîtes aux lettres depuis Local Folders de Thunderbird (via le menu Fichier) ne permet de transférer qu'un seul courier par boîte aux lettres de Local Folders. Et c'est ce qui m'empêche de passer à Mail.
    Merci d'avance pour votre aide.

    iPhone: Transferring information from your current iPhone to a new iPhone

  • My windows laptop suffered a serious crash. How can I transfer all music and content from iPhone to iTunes on new windows 8 laptop?

    My windows laptop suffered a serious crash. How can I transfer all music and content from iPhone to iTunes on new windows 8 laptop?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How can I pass a xml file to the webservice?

    Hello friends,
    How can I pass the XML file to any webservice API ?
    I have all the inputs of API in to the XML file.
    Please note:- I don't intend to do any .NET or Java coding to populate the data in the objects .Instead I plan to input the data to the webservice direcly from the XML file required schema.
    If necessary I can use Oracle Bpel process manager for it.
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]

    Well, I've used it (or rather: tried it); did not/could not find the many options to export at a nearly lossless conversion for HD footage (hence my disclaimer "don't know"). Here is a screenshot of the Handbrake options:
    And here are the choices and settings from MPEG Streamclip:
    Maybe not empirical, but enough for me to have an opinion.

  • How can i write a XML file with oracle data ?

    How can i write a XML file using PL/SQL.
    Can i do as follows.
    1.Open a file using UTL_FILE.FOPEN(LC_DIR_LOC,'abc.xml','W')     ;
    2.write all the required tag and value using UTL.put_line
    that is enough. Is not, please guide me to write.
    gk

    Having Oracle 9i.
    One more doubt. In the speck, some constand values are there, When i write the same into file, How can i write ?.
    1. l_str := ' "E27" '
    or
    2. l_str := ' E27 '
    UTL_FILE.PUT_LINE(L_FILE_POI,l_str,TRUE);          
    1 case : in XML file : "E27"
    In 2 case : E27
    When we write a XML file through editors , we have to define the constant within quote . is it?      
    Which one can i use ? Or any other way is there ..
    Thanks and Regards
    gopi

  • How can I convert the binary file content to XML message

    Dear friends,
    I poll the binary file from a ftp server but the payload only includes the binary content, no XML structure in the payload, I hope to convert the binary content to a element node within the XML structure, how can I do that? via content conversion?
    Thanks and regards,
    Bean

    Read the binary file stream using java I/O standard functions and convert the read stream to Base64 format. Now map this content to one of the field in target XML structure.
    You need a java mapping for this.
    what is your target system?
    Thanks,
    Gujjeti.
    Hi Gujjeti,
    Thanks a lot for your kind help, my target system is R/3.
    Can I achieve that with a UDF or a simple way?
    Regards,
    Bean

  • How can i transfer a pdf file to my i photos

    How can i transfer a file to my i photo?

    I'm sorry, but this forum is for questions about the use of workspaces.acrobat.com, not iPhoto.

  • TS1347 (How) can I transfer docx/exlx file to my iPad?

    (How) can I transfer docx and exlx files to my iPad mini?

    Have a look at the following (in my order of preference)
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1

  • How can I serve crossdomain.xml file on a specific port?

    Let me introduce my problem step by step:
    I was using a socket connection on the address www.mydomain.com:1925 to provide a chat service for my users. When I moved to cloudflare, I could not connect to port 1925 directly because of the fact that my requests were reaching my origin server over cloudflare and the port was changing.
    How did I solve it? I created a subdomain chat.mydomain.com whose DNS settings point to my origin server not cloudflare. I bypassed cloudflare by this way and I connected my chat service by using chat.mydomain.com:1925 on the browser. So far so good.
    Here is the problem. I am also using Flash and AS3. It is the core of my game on the site. Chat is working on html and my game in flash is in some part of my website. In flash, I was sending scores of players using again a socket connection on www.mydomain.com:1925 by a different namespace.(Since swf's host and url's host matched, I didn't have any problem I think).Since I have changed the domain to chat.mydomain.com:1925, Flash started to request a crossdomain.xml on chat.mydomain.com:1925. There is a crossdomain.xml file on chat.mydomain.com however I cannot serve it from chat.mydomain.com:1925. Here is my code:
    Security.loadPolicyFile("https://chat.mydomain.com/crossdomain.xml");
    var urlLoader:URLLoader = new URLLoader ();
    var url:String = "https://chat.mydomain.com:1925/socket.io/1/";
    var request:URLRequest = new URLRequest(url);
    request.method = URLRequestMethod.POST; 
    urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    urlLoader.addEventListener(Event.COMPLETE, completeHandler);
    urlLoader.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
    urlLoader.load(request);
    Since flash cannot find crossdomain.xml by getting 404, the requests in my code do not work. How can I solve this problem? How can I use the origin chat.mysite.com:1925?

    You're going to have to host it in a way that lets you serve HTTP/S content (at least the crossdomain.xml) on port 80 or 443 respectively.
    The Flash Player Security Whitepaper has an excellent breakdown of the requirements for crossdomain policy stuff:
    White paper: Adobe Flash Player 10 security | Adobe Developer Connection

  • How can i transfer my music files from iPad 2 to MacBook Pro?

    hello,
    I got my mp3 files from PC and transfer to iPad 2. it works good.
    And I want to transfer this mp3 files from iPad to MacBook Pro.
    I don't know how to do it and it seems like I should 'buy some tranfer program from other website'.
    Should it word that way? or iTunes program can't deal this issue?
    I have changed some music file information (such as Album, Artist, etc) of mp3 files in iPad from iTune in MacBook. Of course, the iPad was connected to the MacBook. However after I disconnected the iPad from the Mac, those changes were not shown in the iPad (edited album name, artist name...). When I connect the iPad to the Mac again, I can see the changes in iTune in the Mac.
    Another issue.
    Does Anybody know how to set calendar from Japanese calendar to Gregorian calendar in iPad 2? When I setup the iPad first time, I might choose wrong calendar but I can't change/see the calendar option from iPad settings...
    I have been used PC for 20 years but to transfer myself to Apple, it's not easy....
    Issue 1 - music file transfer from iPad 2 to MacBook Pro
    Issue 2 - music file info udate in iPad 2 through MacBook and it doen's implied after disconnected.
    Issue 3 - Change calendar from Japanese to Gregorian in iPad 2
    Please advise,
    Have a great day!!
    Brandon

    A free app that can deal with music files is Songbird.
    There are two paid apps that can transfer just about any type of file; TouchCopy and PhoneView

  • How can I save a XML file with JAXP1.1?

    Dear All.
    I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1.
    How can I do? thank you.
    Many person give me a idea the com.sun.xml.tree.XmlDocument, but I can't find the class in API document or JAXP1.1's packages. why?
    what is it? How can i use it?
    thank you very much.

    The way to save an XML Document is using a Transformer.
    To have access to a transformer use the packages :
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    Then for saving your Document Object (named dXml) get a Transformer Object with the TransformerFactory Object :
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    Now you have got your Transformer Object, to save your Document Object use the method :
    Document dXml = getMyDocument(); // this is your Document Object.
    OutputStream osSave = getMySaveStream(); // this the OutputStream you need to save your Document.
    try
    t.transform(new DomSource(dXml), new StreamResult(new OutputStreamWriter(osSave)));
    finally
    osSave.close();
    And your Document was now saved.

  • How can I convert my specific file content in the Receiver Adapter(XI 7.0)?

    Hi all,
    I have a document structure as below:
    <MT_MATERIAL>
       <MATERIAL>
             <WERKS>1000</WERKS>
             <MATNR>HAD_00001</MATNR>
             <MAKTX>CHEMICAL MATERIAL</MAKTX>
       </MATERIAL>
    </MT_MATERIAL>
    This document structure is the file content in the Receiver Adapter (File Adapter). In the 'Content Conversion' tab of File Adapter of Communication Channel 'CC_OUT_MATERIAL_FILE', I have configured the parameters as below:
    Recordset Structure: MATERIAL
    MT_MATERIAL.fieldSeparator: '
    MT_MATERIAL.endSeparator: 'nl'
    MATERIAL.fieldSeparator: '
    MATERIAL.endSeparator: 'nl'
    *.fieldSeparator: ,
    But, this Communication Channel 'CC_OUT_MATERIAL_FILE' (in the Runtime WorkBench/Component Monitoring/Adapter Engine/Communication Channel Monitoring) is error with the error message as below:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
    Could anyone please help me to correct this error, how should i configure the parameters in the 'Content Conversion' tab?
    Thanks a lot in advance,
    Vinh Vo

    Hi Vinho,
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    Have a look at the this blog by Arpit Seth ... its all about FCC at receiver side...
    File Receiver with Content Conversion
    Also have a look at this thread.. might be helps you....
    RECEIVER file CONTENT CONVERSION
    Above links be helpful.
    Regards,
    Jayasimha Jangam

  • How can I return an xml file to normal print?

    I typed out a list of CD and saved it but it is filed in xml format and I don't know how to return it not normal print so that I can print it out.  As you may realise I am not very computer literate! Please can someone help.Thanks

    coda, textwrangler, textedit should all be able to open and display xml files
    but there is no direct print or word proccessor route from xml it's a broad format it's
    just tags and how those tags are read and write are up to the program which writes and read the file in question
    so you may end up having to fish out the text you want to print from inside X different tags in the file
    xml can be seen as a text version of .dat which is the binary counterpart

Maybe you are looking for