x

Table valued stored proc parameter from JDBC

Hi experts,

could you please show me the way how a table valued parameter of a stored procedure can be populated/sent via JDBC? If it is possible at all. I need to send whole tables from a web page to the db and I would like to avoid using XML parameter type. Should my question be out of scope of this portal, could you please point me to the correct source?

thanks and best regards,

Rudolf.
more ▼

asked Aug 17, 2012 at 08:05 AM in Default

RKONUCH gravatar image

RKONUCH
10 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

What you'd want to use in this situation are the table valued parameters available in SQL Server 2008 or better. Here's a link to the SQL Server documentation on them.

From what I can see though, it looks like the JDBC drivers may not support this feature. Here's an article all about it by Erland and he mentions that lack of support. That could explain why I'm not able to find good examples.

more ▼

answered Aug 17, 2012 at 10:05 AM

Grant Fritchey gravatar image

Grant Fritchey ♦♦
103k 19 21 74

Grant,

thank you very much for your answer. It is very much appreciated.

Best regards,

Rudolf.
Aug 17, 2012 at 11:13 AM RKONUCH
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x85
x24
x10

asked: Aug 17, 2012 at 08:05 AM

Seen: 1315 times

Last Updated: Aug 17, 2012 at 11:31 AM