using (SqlConnection sqlConnection = new SqlConnection(connectionString))
{
query = "SELECT TOP 1 * FROM TABLE_NAME";
SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(query, sqlConnection);
SqlCommandBuilder builder = new SqlCommandBuilder(sqlDataAdapter);
sqlDataAdapter.Fill(dt); //dt is your datatable want to insert to database
sqlDataAdapter.Update(dt);
}