Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multidimensional Parameters 1

Status
Not open for further replies.

dBjason

Programmer
Mar 25, 2005
355
US
Not *quite* sure how I'm going to do this, but...

I'm trying to design a db-driven system using WCF, VB.NET and SQL Server 2008. Basically, the VB.NET and WCF code capture user-defined data and are supposed to pass it to SQL Server, which will retrieve a single record (nvarchar[max]), parse & populate the column with the user-selected variables, and return it to the application.

The problem I'm having is in the stored procedure parameters. The applications pass multidimensional arrays (jagged arrays) to and from each other. But how can I pass those to a SQL stored procedure?

As none of these variables will be stored in SQL, I'd like to avoid writing them to a table.

Of course, my plan might be goofy to begin with. Perhaps I should parse/populate the data at a different level (ie: in the service app). Of course, that would mean I'm posting in the wrong place.

Any ideas about passing multidimensional arrays to stored procedures? Other thoughts?
 
multi-dimensional jagged arrays? Perhaps you should think about using XML.

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Thanks, the TVP was definitely the way to go!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top