Cannot attach sql files to different connections

Hi friends,

This is on MacOS with version 2021.3.2.

I created a new sql file through File->New->SQL File. I then try to attach it to different connections but only the connection that I'm using shows up. 

I consulted the forum and found the following tip (https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000139524-Switch-Database-Console-Connection ), which confirms that I should be able to switch connections for a sql file.

What I found out later was that I could actually do this if I clicked the "Files" button on right side of the screen, pick a folder and create a file inside. So my question is: Why cannot do it using the first method? 

Thanks in advance!

1 comment
Avatar
Yuriy Vinogradov
Comment actions Permalink

Do you want to attach this file to several different data sources? (I mean with different DBMS types).

0

Please sign in to leave a comment.