How to get the same output generated in SQL*Plus
Posted: Sat 11 Sep 2010 02:29
Hello, I need to make a form where a user can type in a TEdit commands such as and would show the user a feedback message, such as "session altered."
Otherwise the user enter "set linesize 200" and the result of your query (any valid query) is displayed in a TMemo (not in grid) the same way that would show if it were running on SQL*Plus respecting settings set pages, set feedback, col format, etc...
Or even run a or and see the result the same way as is shown in SQL*Plus
This is possible with the ODAC? What components and events can help me? Any demo?
Thank you.
Sincerely,
Rafael Trevisan.
Code: Select all
alter session set NLS_DATE_FORMAT = 'dd/mm/yyyy';Otherwise the user enter "set linesize 200" and the result of your query (any valid query) is displayed in a TMemo (not in grid) the same way that would show if it were running on SQL*Plus respecting settings set pages, set feedback, col format, etc...
Or even run a
Code: Select all
show sgaCode: Select all
show parameter db_blockThis is possible with the ODAC? What components and events can help me? Any demo?
Thank you.
Sincerely,
Rafael Trevisan.