Tuesday, July 14, 2015

Code review on TFS (Visual Studio)

Code review on TFS (Visual Studio).


Ici un post pour essayer d'avoir plus de references de TFS et les derniers functionlites  dans VS 2012.

Code review on visual studio   

Friday, July 10, 2015

NVL VS CASE

Here a quick example of how NVL and CASE can be switched to improve performance and readability.


--  CASE VERSION with X097_TEMP_EDIT_TO_DNI_TRANSACT
SELECT
( CASE    WHEN  x097.c097_edit_name  IS NULL THEN  t097.c097_edit_name  ELSE  x097.equip_stn_no END
   ) as c097_edit_name,
  t097.c097_edit_name as tempHistoric,  x097.equip_stn_no
 FROM t097_temp_edit_his  t097,  X097_TEMP_EDIT_TO_DNI_TRANSACT x097, CIRCUIT
 where t097.c097_edit_name =x097.c097_edit_name (+)
 AND    6100006 = circuit.circt_id (+)
and rownum < 10;



--  NVL VERSION with X097_TEMP_EDIT_TO_DNI_TRANSACT

SELECT   NVL(x097.equip_stn_no , t097.c097_edit_name ) as c097_edit_name,
x097.equip_stn_no END    ) as c097_edit_name,
  t097.c097_edit_name as tempHistoric,  x097.equip_stn_no
 FROM t097_temp_edit_his  t097,  X097_TEMP_EDIT_TO_DNI_TRANSACT x097, CIRCUIT
 where t097.c097_edit_name =x097.c097_edit_name (+)
 AND    6100006 = circuit.circt_id (+)
and rownum < 10;




Tuesday, June 30, 2015

Oracle tips and tricks.

Je suis présentement en train de travailler sur Oracle dans un projet. Il y a quelques années déjà travaillaient sur Oracle Développer ici mes dernières expériences.


requete pour trouver le schema/user:


select sys_context( 'userenv', 'current_schema' ) from dual;


Query pour trouver locks:

select * from v$lock where type='TX' and request>0;

Query pour trouver un utilisateur en particulier:

SELECT username, user_id
       account_status
  FROM dba_users where username= 'CRECINOS';



Query pour trouver les logins et aussi les proces actuels:

SELECT s.inst_id,
       s.sid,
       s.serial#,
       p.spid,
       s.username,
       s.program
FROM   gv$session s
       JOIN gv$process p ON p.addr = s.paddr AND p.inst_id = s.inst_id
WHERE  s.type != 'BACKGROUND'  AND s.username='CRECINOS';

select s.type
FROM   gv$session s
       JOIN gv$process p ON p.addr = s.paddr AND p.inst_id = s.inst_id

Friday, June 12, 2015

Visual Studio 2012 keyboard shortcuts



http://visualstudioshortcuts.com/2012/


Tuesday, December 2, 2014

Saturday, November 8, 2014

Software Engineering Institute and CMMI-SVC

Software Engineering Institute and CMMI-SVC

Introduction to CMMI-SVC.


Monday, October 20, 2014

Github with Visual Studio



Github with Visual Studio

Check how to connect to Visual Studio with Github.