Save XML data into database as columns in C# -


i'm writing c# application watch newly created xml files, , want insert of data in these xml files sql database. 1 file 1 row in database.

what best , easiest way this?

what have done far defined datatable columns want xml. after use readxml on dataset. give me dataset 1 table , 1 row, , columns want. far it's perfect. can't find way insert new datarow mssql database. don't have unique id row yet. make easier? don't want map dataset database, i'm doing insert...

you can id:

    string query = "insert employees (employeeid, name, phone) "+                    "output inserted.employeeid "+                    "values (newid(), 'john kris', '99-99999')";     guid lastid = (guid)command.executescalar(); 

the rest of things sound ok me.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

c# - Attempting to upload to FTP: System.Net.WebException: System error -