I am new to JSON and SQLBulkCopy. I have a JSON formatted POST data that I want to Bulk Copy/Insert in Microsoft SQL using C#.
JSON Format:
{ \"U
using (SqlBulkCopy bulkCopy = new SqlBulkCopy(connection)) { bulkCopy.DestinationTableName = "dbo.LogData"; try { // Write from the source to the destination. connection.Open(); bulkCopy.WriteToServer(dataTable1); connection.Close(); } catch (Exception ex) { Console.WriteLine(ex.Message); } }