looping through data RRS feed

  • Question

  • New to c# and VS

    I've learned how to connect to different databases up to the point where I can open them and load
    a table of data into a datase

    string sql = "SELECT * FROM POWERS";
    OleDbDataAdapter dataadapter = new OleDbDataAdapter(sql, cnn);
    Dataset ds = new Dataset();
    dataadapter.Fill(ds, "Somename");

    at this point I want to learn to loop through the data and insert the contents of each row into
    a different type of data, "MSSql".

    • Moved by Kristin Xie Tuesday, June 16, 2015 8:37 AM move to appropriate forum
    Monday, June 15, 2015 9:09 PM


All replies