IN Oracle SQL Developer can you pop-out query results/script output - oracle-sqldeveloper

Was wondering if it was possible to pop-out the query results/script results window/s into separate "windows" windows, so for example I could have my query worksheet on one monitor and the output/results on another via an dual monitor set-up.
Thank you.

No.
But, you CAN take a query worksheet itself out of the main display and move it over to another monitor.
'Float' the worksheet - right click on the editor tab, 'float'.
Then you can minimize the editor bits of the worksheet so it's full screen results
that would look like this

Related

How to execute a SQL script in DBeaver?

I have a number of .sql files that I wish to execute through DBeaver. Traditional database development programmes allow the user to edit and run SQL scripts (totally or partially) in the same window, but this is not obvious with DBeaver.
When I open a .sql script some drop down boxes in the button bar appear, that seem to serve as connection selectors. But none of the connections I have defined appear in these drop down boxes. It is possible to open a SQL console on database objects in the Database Navigation view, but not on SQL scripts.
How can I execute a SQL script, totally or partially, against a particular database connection with DBeaver?
For larger files, the more optimally it is edit the .sql file in an external editor and then in DBeaver:
right-click on your DB
chose Tools / Execute script
load your .sql file
click Start.
This approach is generally more convenient and faster for large files.
To do this without an external editor, you must:
set your DB in Active datasource select
load your file File / Open file ...
run the whole script e.g. using a shortcut Alt+X.
I believe I figured how to do this. First of all, the desired script must be open with the SQL editor. Then one must select the Auto-synch connection with navigator option that is available from the down arrow menu for the Set active connection from database navigator connection button:
In certain cases, this immediately activates the SQL console within the SQL editor panel. If that is not the case then one must go through the Database Navigator and select the desired schema on which to work.
It is then possible to execute a segment of a SQL script (e.g. a query) by selecting it and pressing Ctrl+Enter.
I hope all is well! Great question! I had a similar question when I started working with dbeaver. Here is what I have figured out so far:
run an entire single script with ALT+X;
run selected part of the code or anything before a semicolon, ; with CTRL+ENTER;
run multiple files with Tasks; in dbeaver 21.0:
Click menu Database -> Tasks -> Create new task
Specify task name;
Choose the connection;
Select files to run (I had two to exclude, underlined with red);
Run the task from same menu and watch dbeaver iterate the code for you.
Attached is a screenshot: running a Database Task on dbeaver 21.0
In DBeaver 21.1.3 Community Ed. I can change database and schema by drop down lists on top toolbar. To automatically change it according to selected database in Database Navigator make tick to Window / Preferences / Editors / Auto-sync editor connection with navigator selection.
I just created a New SQL Script (^]) and then hit context menu>File>import SQL Script (Shift-Control-Alt-O). And of course execute it (^-Enter). For dummies like me this isn't that obvious way-of-working.

Data for some bound fields not appearing on report

I'm creating a 'SectionReport' (Active Reports V.9), and am dragging bound fields from the 'Report Explorer' directly onto the report. I've written the SQL query, which executes and returns the correct results as expected.
However, only a small portion of the bound fields are displaying data from the table.
Again, when I execute this in the 'Query Designer', I see all data. When I save that exact query, only some of the data is populated on the report.
This process seems so straight forward and yet I seem to be missing something.
Please help and thanks in advance!
So you're saying the data is returned but not showing up in some of the fields? Have you checked the binding for each of those fields?
Can you step with the debugger and verify that in the detail_format even there is data in report.fields for those records that have missing values.
can you add debug statements that print each field value in the detail_format event.
based on what you described all I can offer is some diagnostics techniques. If you'd like please send your report to our support team and we can properly inspect it and help you out http://arhelp.grapecity.com/
If you are using the enduserdesigner sample or the pre-compiled exe that comes with the installer, can you please make sure that the PreviewPages to a larger number instead of 10.
You can change the value by follwing these steps. in report exploer, double click the settings node. go to gloabal settings tab and change the previewpages value.
If this is not the case, please attach the report. There are no other settings that will cause this.

Crystal Reports : Crosstab refuses not to paginate

I am using Crystal Reports 11 (XI) and I have a crosstab that has quite a few rows to it. Its publishing format is to Excel, so pagination doesn't really even make sense. However, no matter what I do it repeats the column/crosstab headers every couple dozen lines. I've tried:
-Increasing page size definition to max size (12x18) portrait
-Turning off pagination in the output settings
-Turning off horizontal pagination
-Deleting column headers (works) but I cannot delete the crosstab header
I'm running out of ideas.
If the goal is just to create an excel file with some pivoted data crystal reports is not the best way to do it. Check the first 5 minutes of this video:
http://www.r-tag.com/Pages/Preview_Demo.aspx
It compares the same data presented as a cross-tab in Crystal reports and pivot report based on a SQL ad-hoc query. SSRS is also part of the comparison and it is a better choice than Crystal too , but SQL ad-hoc query is my favorite for pivoted data.
P.S. I am proposing this alternative because the tool is free, it will save you development time and will create a better formatted excel file. If you are using BOE and you want to keep the report there this might not work for you.
The solution is as contrived as the problem...
There is no way in Crystal XI to "turn off" the crosstab pagination. It simply cannot be stopped. However, you can cheat the system by configuring a massive page size. In windows on your development machine, locate your XPS printer virtual device and choose "Print Server Properties" (in the top banner in Win 7+)
In the "Forms" tab, you will be able to configure a new paper form object of arbitrary size. Click on "Change Form Settings" and create a new page that is as large as you think you will need. I'm not aware of any limitations on this configuration, but I'm sure bad things happen if you go nuts.
Returning to crystal, go to printer configuration and select the XPS document printer as your target device for exports, and save the custom page size as the target paper type.
Now, the crosstab will assume you are printing to a massive sheet and will not attempt to paginate. As far as I can tell it's impossible to achieve the same effect any other way.
Here is a introduction about jasper crosstab.
http://www.tutorialspoint.com/jasper_reports/pdf/jasper_crosstabs.pdf
From the document, you can add two attributes in node
<crosstab isRepeatColumnHeaders="false" isRepeatRowHeaders="false">
...
</crosstab>

Is it possible to "unprocess" a cube in SSAS to retrieve only the metadata?

I would like to know if it's possible to "unprocess" a cube in SSAS. I want to do this so I can perform a "synchronization" between two differents servers. This (I think), will remove all the data and left the metadata to be synchronized? Am I right?
Do you know a way to do this?
Thanks!
There is the ability to unprocess, although that'd leave your cube unprocessed. Right-click database, select process, in the next window change process type to Unprocess and "Script to new window" in top-right.
If you just want a schema though, can you not script the "Script Database as Create" XMLA? Then drop your target and run the Create XMLA against the target server?

SQl Developer Single Query result tab please

In the free application SQL-Developer (provided by Oracle), I tried searching around for this but couldn't immediately find a solution. I find the opening of multiple SQL query result window/tabs mildly annoying. I'm sure there are very useful cases for this feature, but my question is:
Can we turn the multiple query result windows to just one (Toad style). If there's a shortcut key for this, that would be super awesome.
SQL Developer 4.0 (2013)
Close all the Query Result tabs
Tools > Preferences
Database > Worksheet > uncheck "Show query results in new tabs"
So, it turns out this is a bug. If you look closely, you'll notice that for each query run, your results tab is automatically being pinned, causing each new query run to need it's own new tab to display the results.
The automatic pinning is only supposed to be enabled when you explicitly go into Tools->Preferences->Database->Worksheet->"Automatically Freeze Result Tabs".
It is an identified bug, that Oracle fixed with SQL Developer 2.1.1.
Go to oracle.com and download the latest version and this should go away. It was definitely very annoying.
Instead of "Run Statement" click on "Run Script"(F5). This would give the output of two queries in the same Query Result window.
Directly to the database or from an application? Do you mean returning one result set from multiple tables together or multiple result sets in one pane? Are you using SQL 2000, 2005, 2008, or something else? The question is vaguely worded, but I'll try to help anyway.
For the purposes of this answer, I think you're trying to query the database directly. Open SQL Server Management Studio 2005 or newer (Not sure if this works in 2000), click New Query, and type the multiple queries into the pane. i.e.:
select * from table1
select * from table2
will return two result sets in the same window/pane.
Unpin helps keep current tab for next query.
(I am using Oracle SQL Developer 22.x)
I found that this was happening in SQL Dev v4.0.2.15 because I was running 2 SELECT statements. Running one SELECT at a time re-used the Results tab.