Click here to Skip to main content
15,917,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to read xml column data of a sql server database and display in a gridview and insert data to that table from gridview only ..

my database table

C#
CREATE TABLE AllowanceDetail
(
 empkey int (foreign key)
 effectivedate date,
 allowancededuction xml
)

example of one record. this is what the format i have
EmployeeKey:-1003

EffectiveDate:-
2015-04-06 15:59:26.760	


EmpAllowanceDeduction:-
XML
<AllowanceDeduction>
  <Allowance Name="extraactivity" Amount="50" />
  <Deducation Name="lop" Amount="-30" />
</AllowanceDeduction>
Posted
Updated 6-Apr-15 18:07pm
v2
Comments
Member 11585739 7-Apr-15 0:05am    
this is what my xml column data
<allowancededuction>
<allowance name="extraactivity" amount="50">
<deducation name="lop" amount="-30">

1 solution

 
Share this answer
 

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