How can I transfer content from an XML file in a MS SQL database of the stored procedure using LabWindows/CVI SQL Toolkit?

Hello

I have a problem to transfer content to an XML file in a MS SQL database through a stored procedure data/fixed. I am able to transfer the content of the file using method...

HSTMT = DBPrepareSQL (hdbc, EXEC usp_InsertReport " ... ");

resCode = DBExecutePreparedSQL (hstmt);

resCode = DBClosePreparedSQL (hstmt);

... but in this case, I am not able to read the return value of the stored procedure.

I tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL), but I miss a xml data type?

No idea how to solve my problem?

Cake of KR

DianaS salvation,

Thanks for your comments. During this time I found another way which fullfill my needs:

resCode = DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_TEXT);

sprintf (sz_SqlStatement, "DECLARE @TESTID INT EXEC @TESTID = usp_InsertReport ' SELECT 'RetVal' %s = @TESTID", sz_Buffer ");
HSTMT = DBActivateSQL (hdbc, sz_SqlStatement);

While ((resCode = DBFetchNext (hstmt)) == DB_SUCCESS)

{

/ * Enter values in the record. */

resCode = DBGetColInt (hstmt, 1, & s32_TestId);
}

resCode = DBDeactivateSQL (hstmt);

sz_Buffer is the content of the XML file.

Cake of KR

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Subject: permissions

    I put the settings to: permissions of Plugins - always ask and pop - ups - block, however, I visited a site and was greeted with a pop-up. In addition, I don't have to 'Click to activate' videos in YouTube, as I used to in Firefox 22. I have Firefox

  • Satellite L40 15G - Touchpad behaves erratically

    Hello I have a Toshiba Satellite L40 laptop 15G, and recently, I am aware that the cursor has not correctly when using the Touchpad. That I usually use a mouse with my laptop with absolutely NO problems, I do not know how long the touchpad works wron

  • Media near Full - alarm?

    How to disable the alarm 'media nearly complete' on these cameras? Could not find anything in the manual or the menu.

  • HP 13 Stream: micro SDHC card format

    Does anyone know if it's better/more useful for the sd card format FAT32 or NTFS? I bought a 32 GB Kingston SDHC memory microSD which is formatted Fat32 for more storage space. Advice and guidance on the format that is more useful for that extra stor

  • Can not download vista 6210 all-in-one driver of lysozyme Pack Web site

    Hello - I tried to download the full software functionality for my 6210 all in one of dozens of times and the hp site keeps popping up an error message when I try to download it. I tried both Vista and 64 bit Vista page. Web site: 10025.www1.hp.com/e