Passing an array into a Stored Procedure

5 pts.
Tags:
Arrays
Java
SQL Server stored procedures
Stored Procedures
is there a possibility of passing an array into a Stored procedure i am using java and sqlserver 2000

Answer Wiki

Thanks. We'll let you know when a new response is added.

No, SQL Server doesn’t support array’s an input parameters. SQL Server 2008 allows you to use a table variable as an input parameter.

Your best option will be to create an XML Document and pass the XML document to the stored procedure, then parse the XML document using <a href=”http://itknowledgeexchange.techtarget.com/sql-server/xml-in-the-database-whats-the-big-deal-any-way/”>OPENXML </a>within the stored procedure to get it back into a relational dataset.
——————
Look here:
<a href=”http://www.sommarskog.se/arrays-in-sql-2000.html”>arrays-in-sql-2000</a>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following