Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to pass array as arguments
    primarykey
    data
    text
    <p>I have 2 tables in 1 database</p> <pre><code>TABLE 1: LOGS TABLE 2: MASTER LIST LOGS HOST | USER | NAME ================== 1 | A | A1 1 | A | B1 1 | A | C1 1 | A | D1 MASTER LIST HOST | USER | NAME =================== 1 | A | A1 1 | A | B1 1 | A | C1 </code></pre> <p>On my C# program, I have a gridview, I need to highlight the row which is not included in the master list</p> <pre><code>LOGS HOST | USER | NAME ================== 1 | A | A1 1 | A | B1 1 | A | C1 **1 | A | D1** </code></pre> <p>Here is my C# Code:</p> <pre><code> //Create the OracleCommand OracleCommand OCom = new OracleCommand("SERVERSTATUS.LOG_LIST", oc); OCom.CommandType = CommandType.StoredProcedure; OCom.Parameters.Add("out_RESULT", OracleType.Cursor).Direction = ParameterDirection.Output; OCom.Parameters[0].Value = sid; OracleDataAdapter _daGrid1 = new OracleDataAdapter(OCom); _daGrid1.Fill(_dsGrid); _daGrid1.Dispose(); _daGrid1 = null; OCom.Dispose(); OCom = null; if (frm_IT010_03 == null) { //button click show form with gridview frm_IT010_03 = new IT010_03(_dsGrid); frm_IT010_03.ShowDialog(); } </code></pre> <p>Class LogArray: This class store data from the database to the array.. How can I call the class? So I can compare it up with the grid..</p> <pre><code> public void LogArray(ArrayList al) { OracleConnection oc = new OracleConnection(ConOra); DataSet _dsGrid = new DataSet(); try { oc.Open(); } catch (OracleException ex) { MessageBox.Show(ex.ToString()); } try { OracleCommand OCom = new OracleCommand("SERVERSTATUS.LOG_STATUS", oc); OCom.CommandType = CommandType.StoredProcedure; OCom.Parameters.Add("out_RESULT", OracleType.Cursor).Direction = ParameterDirection.Output; OracleDataReader DataReader = OCom.ExecuteReader(); while (DataReader.Read()) { al.Add(DataReader.GetString(0)); } } catch { ... } </code></pre> <p>I have compiled a Package with 2 procedures in Oracle</p> <pre><code>Package name: Server Status Procedure name: **Log_list** = Calls for the Logs Table Procedure name: **Log_status** = Calls for the values that are in the logs table but is not included in the master list table. </code></pre> <p>Thanks!! =))</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload