Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. protected int GetRowCounts()
  2. {
  3. int iRowCount = 0;
  4.  
  5.  
  6. using (OracleConnection conn = new OracleConnection("DATA SOURCE=DAPP;PASSWORD=APL_SD7#PP4;USER ID=APL_SDP"))
  7. {
  8. OracleCommand cmd = new OracleCommand("select count(*) from SDPJ_IMPORT_PROCESSO", conn);
  9. conn.Open();
  10.  
  11. // Executa o SqlCommand e obtendo as contagens da linhas.
  12. iRowCount = (int)cmd.ExecuteScalar();
  13. }
  14.  
  15. return iRowCount;
  16. }[![inserir a descrição da imagem aqui][1]][1]
Add Comment
Please, Sign In to add comment