//Reader to load content from Excel sheet OleDbDataReader dReader; excelConnection.Open(); dReader = cmdExcel.ExecuteReader(); SqlBulkCopy sqlBulk = new SqlBulkCopy(sqlcAdminConn); //Give your Destination table name sqlBulk.DestinationTableName = "admin.dbo.SwipeCardData"; sqlBulk.WriteToServer(dReader); excelConnection.Close(); lblWarning.Text = "File Uploaded Successfully"; lblWarning.Visible = true
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)