Hello,
I Have two tables as Listed below :
1) EmployeeMaster
CREATE TABLE [dbo].[EmployeeMaster](
[EmpId] [int] NOT NULL Primary Key,
[EmpName] [nvarchar](50) NULL
)
2) EmployeeRole
CREATE TABLE [dbo].[EmployeeRole](
[RoleId] [int] NOT NULL,
[RoleName] [varchar](50) NULL,
[EmpId] [int] NULL
)
Also I am Having MasterData.xml also
So Now i want to insert this xml file data into EmployeeMaster and EmployeeRole table in MVC. So please give me the solution.
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Adhikar PatilPosted Oct 4, 2018, 7:50 AM
Rupesh KahanePosted Oct 3, 2018, 8:18 AM
https://www.c-sharpcorner.com/article/bulk-insert-update-xml-data-into-sql-table/