Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how do we pass xml as parameter as one of parameter whis is passing from front end to businesslayer and from to dataaccesslayer and finally to database.


ex:i want to know how to pass the xml file or xml data, to database and to insert the xml data into sqltable.


like :
C#
public int InsertDataIntoDb(int Id, String Ename, Xml xml)
        {
        }

and finally how sqlserver take the values from the xml parameter.



and what is advantage to pass xml as parameter .

im very new this kind of stuff,
Posted

1 solution

Hi,

Don't pass XML as a parameter till it is Highly required, if you store as XML, you will find difficult to search, the XML content as a parameter, as you are saying, you are beginner to all these stuffs, you need lot of practise to do so.

Better use Column, pass class and store it in DB
 
Share this answer
 
Comments
jameschowdaree 22-Jun-12 14:04pm    
thanks for your reply,i hear the this xml will works bulk copy method,
if have any idea kindly revert, im just google-ing for xml.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900