Why do I lose the cascade window option on some DB? - ms-access

Why do I lose the cascade window option on some DB?
Look at the difference below
as you see tile "Windows" is missing in the bottom one, both DB are MDB format.

go to file > access options > current Database, check overlapping DB

Related

How to wrap text for mysql database results in PhpStorm

I'm wondering if there is a way to wrap text in the database tab in PhpStorm.
There are some very long results that goes further than I'm able to see.
Here is how that looks like:
Are there any kind of settings or preferences that can wrap text for mysql results in PhpStorm?
I'm using PhpStorm version 2019.1.1
EDIT
I found something that might solve this issue: https://www.jetbrains.com/help/phpstorm/database-tool-window.html (CTRL + F wrap), but I simply cannot find the icon for "Foreign Data Wrapper"
Foreign data wrappers are a concept in Postgres for remote object access. You're looking at the wrong docs, the database tool window is the one where you can create/configure datasources, the window that shows the data is the database console's result pane.
Anyways, AFAICT there is no way (yet) to show the columns wrapped by default. Only when for the edit mode you can activate soft wrapping. Double click on the column or hit F2, then use View > Active Editor > Soft Wrap.
In File > Settings > Keymap you can put that on a shortcut for easier access.
If you enable soft-wrapping for all "files" by specifying * in File > Settings > Editor > General > Soft-wrap files, then the table editor's edit mode is affected by it too and will wrap in edit mode by default.
See also
https://youtrack.jetbrains.com/issue/DBE-5534
https://youtrack.jetbrains.com/issue/DBE-1951
https://www.jetbrains.com/help/phpstorm/2019.1/settings-keymap.html
https://www.jetbrains.com/help/phpstorm/2019.1/database-console.html#f90b0d14
https://www.jetbrains.com/help/phpstorm/2019.1/table-editor.html
https://www.jetbrains.com/help/phpstorm/2019.1/settings-editor-general.html

Unable to resolve valid table in PhpStorm

I'm getting unable to resolve table errors appear in php files containing SQL querying valid tables.
If I Ctrl + Enter over the query, then I get expected results in the DB console, and if I expand the database in the DB explorer tab then I can see the tables.
It's not affecting code execution, but it's annoying because it catches my eye when writing code, and it masks real SQL errors.
I've tried refreshing the database connection, and I've verified that the php tab is connecting to the correct database.
In 2017.2 I had to go to
Settings > Languages & Frameworks > SQL Resolution Scopes
and add my project and database link in there to get it right again.
Try re-creating DB connection from scratch (delete existing one and create it again).
Thinking of possible reasons ... I can think of this scenario:
working with project in current stable version (currently 2016.1.x);
trying EAP build for next version (2016.2 at this moment) on this project and make some DB-related changes there (even simple syncing DB);
going back to stable version (2016.1.x) .. and because new version uses newer file format/versioning for DB-related data (cached DB structure etc) IDE may start ignoring "unknown/newer" format for such data and instead of throwing appropriate warning it just "silently" throwing "unresolved table" message.
No other ideas.
I was getting what OP was getting, and the problem was my DB Server was MariaDB and i had MySQL selected as the SQL Dialect.
See File > Settings: Languages & Frameworks > SQL Dialects.
Faulty error pollution DRIVES ME NUTS TOO!
If I start having SQL resolution issues, I will check my resolution scopes (settings -> Languages & Frameworks -> SQL Resolution Scopes).
Generally I have the most issues when my project mapping is set to 'All Data Sources' by default.
The following steps always fixes it for me:
Click the Project Mapping Dropdown
Uncheck the global 'All Data Sources' setting (required to make other selection available)
Click the drop down arrow for your Database connection
Check 'All Schemas' (Or Specific Tables)
Click OK to close the settings window
Your false resolution errors should disappear after the next parse cycle.
You aren't limited to applying the above steps to just one DB connection, you can do it for all connections in your project.
Sometimes adding a custom resolution scope will work as well, but it is hit or miss for me.
Click the plus sign (top right)
Select the file you are working on and hit 'OK'
Select the 'Resolution Scope' column
Deselect 'all data sources'
Select the specific DB resources you want
Reconnecting to the DB never works for me.
Specifying the table works well... but it can become very cumbersome as the project grows.
I have also run into an additional situation where PHPStorm would only resolve some of my queries, no matter what scope resolution settings I used. However, after I attached a console to my file, they resolved just fine.
(Search for 'Attach Console' in Help | Find Action. You can also add it to a 'Quick List' or Keymap it.)
Although this answer is specifically for phpstorm, I had this same issue in IntelliJ and none of the above fixes worked for me. I had my scope added, everything was active. I could query the database in the console window perfectly fine, and I was totally stumped.
Eventually, I noticed some text in the database panel that said 0 of 4 in tiny text. It looked like this:
Upon clicking on the 0 of 4 text, I discovered there were no schemas added to the connection, even though a default database was set upon making the connection originally. Going to that page allows you to add schemas. Be sure to either select "All schemas", "Current schema", or the specific database that you want to use with your connection.
Changed dialect to MariaDB on global and project level.
OR
To dismiss this error in PHPStorm versions before 2017 which have no SQL Resolution Scopes option:
Go to File
Go to Settings...
Go to Editor and then Inspections
In SQL chapter uncheck Unresolved reference
Click Apply and then OK
Adding database name before the table name worked in my case.
For instance, instead of writing SELECT * FROM Client, put SELECT * FROM database.Client.
I will add another answer, because for me, it was a completely different (embarrassing) cause:
I somehow forgot to add the database name in the data sources general settings (where you also set the host, user and password).
In my case, I have clicked the right button in the SQLScript and change the Dialect to "Generic SQL". It worked for me.
I solved this problem as follows:
CTRL + SHIFT + F10
new query console
Write a selection query to the database, for example:
SELECT * FROM user WHERE user_email='$email' AND user_password='$password'
Enter your code page and click on the table name in the query
ALT + ENTER
run query in console
Select the console you created
First, you need to check the Schemas tab, and make sure you've added the database.
If the unable to resolve table error stills appears, there're two options to fix this:
1.You can edit the properties of the Data Source and add the name of Database, then you can see that select * from table works well.
2.On the other hand, you can also use sql like this select * from database.table. It works for me.
By the way, in many situations, autocomplete can be very useful.
[PHPSTORM]I solved this problem by setting
Languages&Features
SQL Dialect
adding your current file into path and modify its SQL Dialect as a server you are using.
NOTICE!!!!! mine is MySQL but it is exactly MySQL causing problems, after switching into [generic SQL] PROBLEM SOLVED!!!

Alter schema of Access 2013 database with linked table

I'm trying to change the schema of an Access 2013 table. I want to lengthen some of the text fields. When I change the schema and try to save I get dialog with Operation is not supported for this type of object, and a note that This property cannot be modified in linked tables. That makes sense. So I go to the relationships and try to delete one of the links. This gives me the error: You can't delete a relationship inherited from a linked database.
I don't know of any "linked databases" (I didn't create the database). Is there a way I can figure out what/where these might be?
Examine the TableDef properties for your linked table.
Here is an Immediate window session which examines properties for a linked table named remote_Foo:
' Connect identifies the database source of the linked table
? CurrentDb.TableDefs("remote_Foo").Connect
;DATABASE=C:\share\Access\BigDb_secure.mdb
' SourceTableName is the remote table name
? CurrentDb.TableDefs("remote_Foo").SourceTableName
tblFoo
You can use Ctrl+g to go to the Immediate window.
In Access 2010, that information is also available from the Linked Table Manager, which can be opened by right-clicking a link name in the Navigation pane and then choosing it from the shortcut menu. I don't know whether that option has changed in Access 2013.
You will need to make your design changes on the table in the remote database. Then recreate the link or use its RefreshLink method so that Access will recognize the design change and update the metadata it maintains for that link.
Your Table must be linked to Sharepoint site.
Go to "External Data" field and click "Work Offline" button (its a toggle button).
Make any schema changes.
Click again work online tab to sync changes to sharepoint.

How to efficiently copy MySQL databases

Is there any other way to copy MySQL databases from one computer to the other, except importing each and every database individually?
Actually in my office PC there seems to have a problem, so they are changing all the PC's in the office. My MySQL has a lot of databases in it. So I am looking for a one shot process so that all the databases gets copied to my new PC.
Yes, you can simply backup the whole database and restore it on the other PC. Find below the steps;
Backing Up Your Database
First, navigate to your phpMyAdmin page via cPanel or whatever alternative administration system your host provides i.e. Plesk etc. and log in
From the dropdown box on the left (or the text link) click on your e107 database to show all the fields
In the main page, click on the 'Export' tab
Make sure the main 'Structure' 'select all' and 'Data' boxes are ticked
In the right box, make sure 'Add drop table', 'Add AUTO_INCREMENT value' and 'Enclose table and field names with backquotes' are ticked
select the SQL format in the 'export' column'
Tick 'Save as file'
If you want the backup file compressed, tick either 'zipped' or 'gzipped'
Click 'Go'to save your file - the preferred location would be your own PC
Restoring a backup
In PhpMyAdmin main page - Click on the 'SQL' tab at the top and browse to the location of your backup file.
Then select 'Go' from the tab at the bottom right corner of the screen - you may need to empty your existing database before you can restore the backup however normally you don't as the backup will simply overwrite the existing database.
Back-up / Restore related plugins
Some plugins that might become handy for not so experienced PhpMyAdmin users:
EasyBackup plugin
EasyDBtool plugin
Dbackup plugin

Retrieve Schema for MySQL DB-Connection does not work in Talend

I've created a new MySQL DB Connection, and verified it's OK by pressing the Check button in DataBase Connection - Step 2/2 form.
Then I right-click on the DataBase Connection I created and select Retrieve Schemas.
On the first screen of the Schema form that is opened I leave all default values and press Next.
On the second page the Next button is greyed-out, and no matter what I select/fill on the form it remains being greyed out.
Anybody knows why it may be so?
Thanks!!!
I had the same problem, but you can avoid it.
If you select the CATALOG, the Next button will still be greyed as on attached screenshot. But if yo will expand the CATALOG and Sellect All, the Next button will be active.
I had this same issue, in order to resolve it I needed to generate database diagrams and then verify that talend could see all the tables I was looking to retrieve. Basically if you cannot expand any schemas it means there is nothing to import.