C# Excel result comparation -


i have never learned aspect of programming, there way each separate result of excel query(using oledb) or likes.

the way can think of doing use keyword in sql statement, not work me (select attribute variable table).

an example use select statement retrieve id of clients, , compare these id's clientid's in client listarray, , if match, clienttotal orders should compared.

could prove reading material and/or example code problem. thank you.

this code fetches rows sql procedure. work modifications.

        using (var conn = new sqlconnection(connectstring))         {             conn.open();             try             {                 using (var cmd = new sqlcommand("theprocedurequery", conn))                 {                     cmd.commandtype = commandtype.storedprocedure;                      sqldatareader reader = cmd.executereader();                     // find id of column in query once @ start                     var col1idord = reader.getordinal("columnname");                     var col2idord = reader.getordinal("columnname");                     // loop through rows                     while (reader.read())                     {                         // data each row                         var col1 = reader.getint32(colidord);                         var col2 = reader.getdouble(col2idord);                         // data 1 row both columns here                     }                 }             }                         {                 conn.close();             } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -