Tip Bank

DevX - Software Development Resource

Selecting Sort Order at Runtime

You can select which column to sort a SELECT statement by at runtime, using just one parameter. To do this, declare one parameter and use it with a CASE command.

DevX - Software Development Resource

Determine Which Session Is Blocking All Users in Oracle

You can find out which session is causing blocking problems using this SQL command: SELECT blocking_session, sid, serial#, wait_class, seconds_in_wait FROM v$session WHERE blocking_session IS NOT NULLORDER BY blocking_session;

DevX - Software Development Resource

Open Any File from Code

Using the following code snippet you can run any application (such as Word, Excel, etc.) or open any file whose extension is associated with an application, such as .doc, .txt,