Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL Oracle C#4.0 , +
Hi Guys,
 
My page contains 34 fields (textboxes) who's contents are later saved into oracle database table on save button click.
 
Instead of sending 34 different parameters to my insert store proc, i created a XDocument and passes it store proc with a parameter of XMLType.
 
While executing my code I am getting expection like :
 
1. Unable to convert Xdoc to string
2. Incorrect number of parameters (I got after i passed xdoc.tostring() to proc)
 
I am using Enterprise LIbrary 5 to DB Utils.
 
any idea what can be done with this ?
 
also any tip / comment on why/whynot to use xml in insert
Posted 29-Apr-13 10:44am
(unknown member)
Comments
jkirkerx at 29-Apr-13 16:04pm
   
I would of made a structure and populated first, then passed it on as the structure.
 
I store XML in table columns, but I use the XML else where in the program.
 
I do pass XML to a ship rate program, but I pass it as a memory stream and not a string.
 
[edit]
I not familiar with Enterprise Library, so I probably should not of commented here.
sinhasourabh at 30-Apr-13 0:30am
   
Thanks jkirkerx,
 
I have one question now, if i prepare a structure what will be the corresponding data type in oracle SP ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 334
1 Kornfeld Eliyahu Peter 325
2 Maciej Los 239
3 OriginalGriff 188
4 King Fisher 185
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 29 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100