VS Code Oracle Developer Hide SQL in Results Window - oracle

I'm using Oracle Developer Tools for VS Code Extension. When I run a SQL statement a Results Tab opens displaying the SQL statement and records retrieved.
How can I hide the SQL statement in the Results tab? I don't want to see it with my data rows.
This is the Extension:
This is the SQL Tab:
This is the SQL Results Tab:

This can be controlled using the oracledevtools.query.echo setting, but note you'll need to reload any windows before the setting will take effect:
You may also wiuth to bump the oracledevtools.query.resultSet.pageSize setting to 25 at the same time:

Related

Exporting an Oracle table show unrecognize symbols for local(Bangla) language data in insert statement

I am exporting a table that contains some Bangla information. If I run select statement data is showing fine but if export it as select UTF-8 or UTF8 encoding this is showing some unrecognize symbol. if I choose some different encoding it shows "???" instead of Bangla letter.
what I am missing. Please help.
Oracle DB : Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Sql developer : Java(TM) Platform 1.8.0_291 Oracle IDE 21.2.1.204.1703 Versioning Support 21.2.1.204.1703
Addes some screenshot below.
Select query showing bangla data fine. But...
After exporting using sql developer using UTF8 or UTF-8 its showing unrecognise characters.
Thankfully those data are exported successfully! previously I right-clicked on the table and select export option then a window came up. where I had to choose encoding option.which was giving the issues with data.
But this time I selected compressed check box option from the window. It creates a zip file and inside that found the script. and wow! my data is showing fine!
Now it's working!

Autocomplete is not working: DBeaver plugin in Eclipse for Oracle PL/SQL in MacOS

Autocomplete is not working for DBeaver plugin (21.1.0) in Eclipse (2021-03) for Oracle PL/SQL (Oracle DB Developer VM: Oracle 19.3) in MacOS (Catalina).
It does autocomplete for SQL queries with MySQL, PostgreSQL, and Oracle.
But, with Oracle PL/SQL, it does some case changes and syntax highlights, but NO code completion.
For example, if I start typing DECLARE or BEGIN, it does NOT prompt it. But, once I complete these keywords, they are automatically turned to upper case and changes color to blue.
However, when I type dbms_output.put_line it neither prompts anything nor changes case or color thereafter.
(Noticed: In Oracle SQL Developer, it prompts several options as we continue typing the above command, and also does syntax highlight thereafter. Similarly, it prompts options, and code snippets with initial 3 letters like dec, etc.)
By default, the following are checked:
Windows > Preferences > Database > Database Editors > SQL Editor > Code Complete >
Enable auto activation
Activate on typing
Auto-insert proposal
Any idea?

Exporting 500,000 records from Oracle SQL Developer

How can I export about 500,000 records from within SQL developer ? I am trying to export but it is crashing when i highlight the results to then export..
Right-click in the [Query Result].
Choose the export option.
Choose the appropriate options.
[Next]
[Finish]
Unless you are using SQL Developer V1 against Oracle V7, then you might have problems; but you didn't offer version info, so ...
Or are these the steps you have tried?
You don't need to highlight in order to export, just right-click on the first result SQLDeveloper presents (first 50 rows of your query) and then export option.
Then a Wizard to choose file and other options will appear.

How to convert a Crystal Report file (RPT) from Access to Microsoft Sql Server?

I have taken over support of an application that was originally written in VB.Net net and has now been ported to C#. The application originally made use of an Access database which I have now migrated to Microsoft SQL Server 2008. Everything is working fine except for the reports which were built with Crystal Reports. I have never worked with Crystal Reports before and I am struggling to get the .RPT files converted to work with Sql Server instead of Access.
I am using Visual Studio 2010 and have installed Crystal Reports 13.0.1 for VS. Now when I open one of the RPT files I see "Field Explorer" with "Database fields" tree item which I can expand to show a single table. If I right click on "Database fields" and select "Verify Database" a window popups up with the title "Access/Excel (DAO)" and fields "Database Name" showing the path to a .mdb file and "Database Type" with "Access" shown here. If I dropdown "Database Type" I see only file based databases listed here, such as "dBase 5.0", "Excel 8.0", "Paradox 5.x", etc.
So how do I change "Database Fields" to read my Sql Server database rather than Access?
UPDATE:
Ok. I am most of the way there now. I have managed to connect to the database with Database Expert (Right clicking on "Database Fields" and then selecting "Database Expert" from the context menu). I then expanded "Create New Connection" then "OLE DB (ADO)" and was able to select "SQL Server Native Client 10.0" from the provider list. In this way I was able to add a link to the Sql Server database.
Then I tried going to "Set Database Location.." and updating the provider from the .mdb under "My Connections" to the Sql Database which is now listed there and then selecting "Update". This works fine if only tables are linked and these are present in the Sql Database (which they are). But if the report has a command (sql query) then the update fails because the syntax of the command is not correct for Sql Server. I can delete the command and recreate it under the Sql Server connection with the correct syntax, but then I lose all the fields on the report that were linked to the original command. This is not too much of an issue cos I can manually recreate these, but I am wondering if there is a way change the syntax of commands when setting the database location to the Sql Server?
rem the lines of the sql code, then do the db update, then update the sql code.

Query runs fast but report renders slow: how to debug this?

I'm running SSRS 08. My query has four parameters (all varchars). I can run the query through management studio and it runs in under 10sec. I get the same performance if I run the query in Visual Studio's query designer.
However...if I try to preview the report or actually run the report once it's deployed the actual report sometimes takes more than 5 minutes. I ran a trace and the query seems to be in/out of the SQL server side quickly. How can I find where/why I'm loosing this performance? I've tried/checked so far the following:
No images are referenced in the report
No grouping/sorting outside of the stored procedure
Since it's a straight forward report I rebuilt it with same result (to check if it's not an issue of a corrupted report).
ran SQL trace when I executed the report to make sure the query did not have issues
Based on some suggestions before I rewrote the query to use variables instead of parameters like so
-- ...
-- Note: #Parameter is a varchar(40)
-- ...
declare #Var as varchar(40)
set #var=#parameter
select * from table where fieldvalue=#var
Ran the trace and it's not an issue on the query side.
I had the report html output trouble on report retrieving 32000 lines. In my case I had to activate “Interactive Paging” to allow user see first page and able to generate Excel file. The pro is that first page appears fast and user can generate export to Excel or PDF, the cons is that user can scroll only current page. If user wants to see more content he\she must use navigation buttons above the grid. In my case user accepted this behavior because the export to Excel was more important.
To activate “Interactive Paging” you must click on the free area in the report pane and change property “InteractiveSize”\ “Height” on the report level in Properties pane. Set this property to different from 0. I set to 8.5 inches in my case. Also ensure that you unchecked “Keep together on one page if possible” property on the Tablix level (right click on the Tablix, then “Tablix Properties”, then “General”\ “Page Break Options”).
I was troubleshooting a similar issue a while ago and it turned out to be related to the browser I was using to view the report. If the report returns a lot of data to the screen consider splitting it into multiple pages if it is not already configured that way.
Why Does Business Intelligence Studio Load Reports Faster than the Report Server
I think I may have found my answer on a social.msdn.microsoft.com thread
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/1e34dc76-4d78-4376-89b0-7c381ed82726/
I unchecked the "Keep together" setting and it now actually previews coming from the server and I can export the report. Much improvement

Resources