passing XML data as parameters

  • I have a stored procedure that requires XML data as a parameter for it to run. When I run a SQL trace on this proc, it looks like this:

    EXEC import_rates_xml_sp

    0,N'

    '

    In the example above, 2 records are being passed from an existing SQL table to the stored procedure. I know this table very well. My problem is how do I create this XML structure and pass it to the procedure?

    Many thanks.

    Jim

  • Two things:

    1) Attach your XML as a zip or txt file.

    2) What are you calling you proc from?

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply