Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Delphi 2010 - Calling an SP with XML parameters.

Posted on 2013-05-27
3
361 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 26

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 26

Accepted Solution

by:
Sinisa Vuk earned 500 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 238
Why can't I create any project with my delphi EXE file? 6 39
Delphi Yen format 3 45
RESTRequest Parameter 4 42
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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