?
Solved

Delphi 2010 - Calling an SP with XML parameters.

Posted on 2013-05-27
3
Medium Priority
?
422 Views
Last Modified: 2013-06-03
Delphi 2010.  SQL Server 2008.

I need to call a stored procedure defined as:

ALTER PROCEDURE [dbo].[OriginalData2012Validate]

  @xmlData xml,
  @xmlErrors xml output

AS
BEGIN
...

The data types are xml.  Can i call this stored procedure from Delphi 2010?  

 At the moment the parameter types are being defined as "widestring" which then causes problems in the stored procedure.

Any work arround?
0
Comment
Question by:soozh
  • 2
3 Comments
 
LVL 28

Expert Comment

by:Sinisa Vuk
ID: 39199004
Try to use utf8 string - and in xml string must be: <?xml version="1.0" encoding="UTF-8"?>...
0
 

Author Comment

by:soozh
ID: 39199011
thanks but utf8 is not a parameter type.

maybe xml parameters do not exist in Delphi 2010?
0
 
LVL 28

Accepted Solution

by:
Sinisa Vuk earned 1000 total points
ID: 39199047
Doesn't exists, maybe is Blob type behind this? Try to pass xml as blob.
Also take a look...
http://embarcadero.newsgroups.archived.at/public.delphi.database.ado/200908/090826844.html
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month17 days, 1 hour left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question