How to added the SQL query used generate the excel file in DATAGRIP IDE? - oracle

I'm a SQL developer user, usually, I extract data from Oracle database and store them into excel files on a daily basis, the nice thing about Oracle's SQL Developer when exporting the file into excel file, you get two worksheets one for your data, and another worksheet contain the SQL query that used to generate this report.
Now I'm using DATAGRIP IDE from JetBrains, I noticed when I export the file into excel sheet I only get the data and I don't the SQL query that I used to generate this excel file.
is there any way to add the SQL query to the exported file?

There is no possibility to include the SQL tab automatically. But every grid has it's own "View Query" option where you can see and copy the needed SQL.
To have this tab, please create a feature request here: https://youtrack.jetbrains.com/issues/DBE

Related

Oracle Report6i - Export to Excel Option/Button

Please guide me that how to enable option/button on oracle report 6i to export it into excel format
Waiting for your response
BR
Javed Akram
You can't, as far as I can tell. Reports 6i don't have option of saving result into native MS Excel format.
The closest thing you could do is to set desformat to delimited:
Means that the report output is sent to a file that can be read by standard spreadsheet utilities, such as Microsoft Excel. If you do not choose a delimiter, then the default delimiter is a TAB.
(see documentation)

Open several SQL Scripts on Toad starup

i am using Toad for Oracle V11.
And i'm already using View>Toad Options> File to execute on new connections to set some parameters when i start a new connection.
Here is also the option File to load on startup, but here i can only select a single file to open on startup. But I always need three different scripts when I open Toad and i don't want to merge them to one file.
Is it somehow possible to always open those three different scripts when i open toad?
You can't do that, as far as I can tell.
See whether creating a project (using the Project Manager; it's the 6th icon in my TOAD 14 toolbar) helps, as you can add folders or folder items (that would be your scripts) to it.

SQLite .DB file contents shown in Visual Studio Form DataGridView component

So I have a database file (name.db) on my desktop, as well as a project folder containing my program. I want to create a form to test my program, however I cant seem to get my contents from my database into the form, so I can't even test my code. I try to "connect a database" from the tools menu, but none of the options will allow me to connect my ".db" file.
Below are the images of what I'm trying to do, so you can get an idea.
The Form
The menu of different database options, none of which work
The code for the form
Files on the Desktop
The Problem is, that you never make any requests/queries to your database. Since your database could and most probably does contain mutliple tables you should run a corresponding sql query and then display the result. The following link should give you a good starting point how to integrate sqlite with c++.

Query Designer does not recognize quotation marks in the name of synonym (Oracle)

I need to get access to a synonym on a Oracle database.
What I have done so far is:
-Create a DataSet.
-Open the server explorer.
-Open the dataset designer and put the synonym (let's say it's name is "abc") in the dataset designer.
-Right click on 'add query' and then open the query designer.
The problem is when I try to write:
SELECT * FROM myschema."abc"
the system automatically delete the quotation marks so it will end in an Oracle's exception (ORA-00942) which tells me that the table or view does not exist.
There is no way I can rename the synonym.
Is there a way to turn off the autocorrection feature?
I can also get access through DataReader but I want to use the dataset designer.
I am using Visual Studio 2010.
Thx
Edit:
This problem does only appear when I am using Oracle provider.
I created a synonym with the same name in a MSSQL database and the system automatically recognize the synonym with quote marks.
It seems that it's a bug in the oracle provider.
You need to put quotation mark around your table name also. Try this:
SELECT * FROM "myschema"."abc"
It worked for me

Exporting data from Oracle query to excel using query

I am having a select query, the result of which i want to be exported in a excel file using Oracle query and not any in-built operations.
I am using TOAD for Oracle. I am not sure if this is possible or not.
Any help would be of great use.
Thanks in Advance!
In Toad, it's pretty straightforward:
Run your query
click the "Export dataset" button
change export format to "Excel File"
enter a filename
Instead of pushing it into Excel, why not "pull" it into Excel? See get external data. An added bonus is that you can add this to your windows task scheduler that will update it for you.
http://office.microsoft.com/en-us/excel-help/connect-to-import-external-data-HP010089898.aspx

Resources