Restoring Navicat backup files - restore

I have made the backup from Navicat files in following formats:
*.backup
*.nppb
*.ncx
How can I restore the tables?

If you created the backup under public/backups, This should work.
a. navigate to the DC/public and click the Backups button
b. Click the + add button
c. Under the Advanced tab to name the backup click user specified file checkbox name and write name
d. Then hit play looking button “Start”
e. Now this will show up in Backups
f. To Restore backup click the backup you want then the open button with folder picture.
Then hit start and everything will be reloaded.
Note: For some reason, to see data changes, you must right click in each to table to have them reload correctly.

Create new DB
Open it
Then backup (see image)
So you can pick up your tables (copy them to desired DB)

Related

Intellij vcs plugin, view changed files AND file changes in the same window

I normally do git diff for this but want to leverage the intellij gui.
The Version Control tab just shows me all the files that changed:
To view the actual changes I have to select a file and choose "Show Diff".
This opens another window. Now from this other window if I want to see changes for another file I have to click this button then open the other file:
I don't like that. Is there a way to have this in the same pane? Where on the left I see a list of the changed files and I just have to select the file to see its changes? Otherwise its very clunky and unusable for being able to see a tree of changed files and selecting the one's changes I want to see
Just found it, I wanted "preview diff"

How to import a schema sql file using pgadmin 4?

Is it possible? If so how?
I can only find solution for pgadmin 3 which doesn't work for me.
It worked like this for me:
Go to your Database and click on this.
Click in the menubar on Tools, Query Tools
Then it reload the page. Above the menubar on the left, you see the folder-icon (look picture below). Click on them and choose your .sql file
Click on select and the file is uploaded
To execute the .sql file, press F5 or the play button above the menubar in the middle (look at the screenshot below).
Right click on your database and click on 'Refresh'.
Following are the step that will help you in importing all tables of your schema
1) Open pgAdmin 4
2) Navigate to Your Database Name --> Schemas --> public
3) Then right click on public
4) After clicking on public then select Restore option from DropDown Menu
5) A window will open in which you only have to give location of .sql file and leave other textboxes
6) Click Restore and leave rest on pgadmin
Note :
You have to perform these steps for every single table you want to import
To handle this problem, follow these steps:
Select your Database.
Click in the menubar, select Tools & Query Tools,
Import your SQL (to generate query create table)
Execute query
this steps:
To handle this problem, follow these steps:
Select your Database.
Click in the menubar, select Tools & Query Tools,
Import your SQL (to generate query create table)
Execute query
This working with me when importing .sql file after creating the database.
Thanks

Toad: 10.6: Seek clear instructions on automating reoccuring excel reports

I am new to Toad 10.6.1 and have a question about running a SQL script and email data as an excel file on a scheduled basis.
How do I run script and save as excel format and email as excel file to automatically? Thank you for your time.
Below is what I've done so far but dont think its correct as I get "ORA-00911: invalid character" on step #5 .
Select Utilities | Automation Designer menu option
Select DB Misc tab from right side pane
Last icon in this tab is Execute Script, double click on it to add under Action list
Double click on Execute Script 1 action to open it
Select Text radio button and enter query statement or File radio button and point to SQL file (I keep getting "ORA-00911: invalid character" as well)
Under Output pane, designate the Output destination, perhaps a file and if so, provide path and file for output file
Hit Apply and Cancel
Right click on Execute Script 1 action and hit Run. Check the above output path and file to ensure its created
Under utlities I added the email function, but unable to integrate steps 6 & 9 to automate report
When you say "script" are you really trying to export the results of a single query to Excel and then email that? If so, ditch the execute script action. Use the "Export Dataset" action instead which is intended to run a query and export the results to various formats. Execute Script is intended to emulate SQL*Plus functionality and your output is limited to text file.
Drop an "Execute Dataset" action into your app. It's available from the Import/Export tab in Automation Designer.
Double click it to edit its properties.
Select "File" as the output destination and click the "..." button to the right of the filename. Set your filename and choose the .xls file format. Set any other options as you see fit.
Select the Dataset tab and select "Export query." Enter your SQL there.
Apply and Cancel.
Drop an "Email" action into your app following your "Export Dataset" action. It's available from the Utilities tab.
Double click it to edit its properties.
Configure all properties as required for your mail server. *** Note that 10.6 only supports simple mail servers and no SSL/TLS so you can't use your Gmail account or anything like that. It's limiting. Newer versions of Toad support Gmail and the like.
In the Attachments area click "Add File" and specify your exported .xls filename.
Apply and Cancel.
Now when you run your app it will export to XLS and email the file.

How to get the SQL query from a file in SSIS

I'm new to SSIS. I have a DataBase from which i'm getting the data. Suppose DB is the source and destination may be anything. (I tried DB to Excel and it worked fine)
In the source i have a custom query to get the data. I have written that in the properties.
Now i want to change it. I want to put it in some configuration file (xml file). i.e., i want to
get the query of the source from the xml file. How can i do this?
I'm a complete newbie trying the things. So please give your answer specifically.
UPDATE:
This is my package
I double clicked the OLE DB source. Now This is what i written there
I want to put the query (select id, age from emp where exp > 4), in a configuration(xml) file.
Create a package level variable for your query:
Change your source editor to use SQL command from variable (with appropriate variable) instead of SQL command:
Go to the SSIS menu and click "Package Configurations..." then click the checkbox to Enable package configurations, then click the "Add..." button.
... By default, it uses an XML Configuration file, which is probably easiest to work with. Specify a filename - the file extension is .dtsConfig. If the file doesn't exist on your machine, it will create one for you. Click Next.
Find your Variable, find the Value property for the variable, and check the box for it. Click Next.
Choose a name for your configuration. Click Done, then click Close in the Package configuration list, making a note of where on your file system you saved your configuration file.
Find the configuration file on your file system. Right-click and edit with an XML editor as needed.

Change visibility being lost in RTC source control

When i create a new stream in RTC source control I take a snapshot of the current stream and create a new stream from this snapshot.
If I right click on a file in RTC source control and click "View History" then just the changes made in the current stream are displayed. If changes were made a previous stream(s1) and this new stream(s2) is created based on that stream(s1) then I do not see the changes made to the file in s1 . I can search for change sets on the stream and try to find the file that changed but this is a difficult process.
How can the entire history of file changes be viewed on RTC source control regardless of what stream the changes were made ?
You can display the repository files of a component (directly in the component section of your project area).
See the component folder in the picture above: a show history from a component in that folder, as opposed to a component in a stream, would display the full history of that file, instead of the filtered one from a stream.
This is similar to the "Show all in history" mentioned by Scott.
See "RTC file/element revision history":
In the Eclipse client, you can right click over a file loaded into a workspace and select "Team -> Show History".
This shows you the history of that file in that workspace.
You can then click on the "Show all in repository" tool icon, to see the history of all versions of that file. (You can do the same thing to a file in a stream/workspace repository files view, with the "Show History" operation).
In the History View there is a button in the toolbar to "Show All in History".
Scott