I use Intellij to inspect databases, run sql, view data in tables etc. This all works fine but the only thing I am missing is the ability to define these datasources once and view them in all my projects i.e. that I can share them between other projects and not have to redefine them for new projects. Is this possible in Intellij?
Go to the Database tool window and click on the Data Source Properties button. Select the data source you want to make global. Click on the Make Global button in the tool bar above.
The Make Global button looks like this:
Now you can use the data source from all your projects. However a global data source is not stored in the project files, so any other developers working on the same project will need to define their own data source.
The Make Global button is no longer green (Intellij Ultimate 2018.02).
It's located above the datasource list, as in the (crappy) screenshot.
In Intellij 2020.1, click on the Database view, then click on "Data Source Properties" (database with wrench icon). On the dialog that opens, click on "Make global", which is the 5th icon (screenshot below).
In IntelliJ 2019.1, 2019.2 to share connection to DB with multiple projects:
Open Database panel
Datasource Properties
Make Global
So how I did it on 2018.3 was to go to the Database tool window then right click on your datasource you want to copy then Database Tools -> Copy Datasource to Clipboard. In the Database window for the project you want to copy to click the + at the top left and it has an option to Import from Clipboard.
In IntelliJ 2019.3 to share connection to DB with multiple projects:
. Open Database panel
. Data source Properties
. Click the blueMake Global button
Related
I am trying to deploy my first WPF, C# application to many desktops. For most records in the case database there is a large PDF which I want to store separate from the database and is displayed when a button is pressed (PDF filename equals the id number). It is a search only program, no data is being saved back to the database by users. There are approximately 32,000 pdfs and this number will grow. When I tried to list these files in the project and use ClickOnce to Deploy VS said I had exceeded the maximum manifest size.
Is there a way to deploy my app with ClickOnce and then copy the files with some type of post-install command? Thank you.
Add the files to your project. Mark the Build Action as Content and the Copy to local directory to Always. Then it will include the files with your deployment.
You can also check the Application Files dialog to see if they are there. And if the files have a file extension of XML or something that indicates data, you want to change the option from Include(Data) to Include or Include(Required). If you include a file as data, it is put in the DataDirectory after deployment.
Select a data file in Solution Explorer.
In the Properties window, change the Build Action property to the Content value
2. To mark files as data files
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Publish tab.
Click the Application Files button to open the Application Files dialog box.
In the Application Files dialog box, select the file that you wish to mark as data.
In the Publish Status field, select Data File from the drop-down list.
3. To mark files as prerequisites
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Publish tab.
Click the Application Files button to open the Application Files dialog box.
In the Application Files dialog box, select the application assembly (.dll file) that you wish to mark as a prerequisite. Note that your application must have a reference to the application assembly in order for it to appear in the list.
In the Publish Status field, select Prerequisite from the drop-down list.
Source: MSDN - How to: Specify Which Files Are Published by ClickOnce
I am trying to find the datasource of an SSRS report
I go to Properties and Data Sources then I see a bath in "A shared data source" (which was ticked)
"/Dynamics/Reports/Data Sources/dsJobReporting"
when I click on Browse next to it there is no such data source,
I reopened the folders but could not find any data source in there.
The "A custom data source" is not ticked, so it is disabled.
The report shows data when I click on "View Report"
but I dont know what is the source of that report!.
Is there any other way I can search for the data source?
Thanks
I found that the /Dynamics/Reports/Data Sources/ folder was hidden and the only way to access that not through the browse button.
I have to go to that folder through SSRS interface website.
My database and the toolbar disappeared from the Database Window. It seems that i cant enable it by clicking on the "settings"-icon and clicking "Show Toolbar" because i dont get the options.
I allready tried reinstalling the plugin and restarting the computer. Nothing worked for me.
Has anybody noticed a similar problem and could solve it?
I would appreciate any help.
This is how it looks like: http://i.imgur.com/MAgwRXz.png -> i would assume there should be a toolbar instead of nothing
Install the PHPStorm plugins 'database Tools and SQL'
If you click on MENU > VIEW > TOOL BUTTONS you must view appear a 'Database' icon around the PHPStorm window.
Otherwise you can map directly the function view with the keyboard shortcut.
Enter into Settings > Keymap and search database. It sort in 'Other' category. Fix the shortcut with any key on your keyboard.
Now use this new keyboard shortcut attribute and test if you can view the window Database.
If you don't have create a database connection, perhaps create this.
please check for database toolbar
how to get database window
i m using phpstrome 8.0.1 i have made changes in my phpstrome editor as shown in image this will help you please refer the image
please check the second image there is setting button you click on that button and you will get show toolbar option
I had this problem too, for me solution was re-activating the database plug-in , which was disabled by mistake.
Go to Settings, Plug-ins, search for "database", a plug-in named "Database Tools and SQL" should appear and be selected.
Check if the checkbox near the plug-in name is checked, if not, check it.
That's it.
Restart PhpStorm and the Database Window will be there.
Plugin Settings
click: File > Settings > Plugins . A window will open as shown in the image above.
Search for: Database Tools and SQL (if not found click on install jetBrains plugin..search for Database Tools and SQl and first install it)
Enable and Apply
Restart
In left down corner is pic with two squares on it, try to click it. This button switch some view modes in php storm.
I want to migrate all views from my local site to another site.
I know there is a module "Migrate" which allows you to do data migration but I don't know how to use it.
Can you give me some tips?
Thanks in advancej
Not sure what you mean with migrating views to another site. In Drupal, the migration concept is usually associated with actually migrating data - a view is actually just a way to query and display this data.
Typically moving a view to a different site, assuming data structures are the same in both can be accomplished by either exporting the view (one of the options while browsing the views on admin/structure/views) or, if it's not just a one of, by featurizing it which is a process that takes a few more steps.
It's only applicable for drupal site to drupal site
First download features module and enabled in both sites.
Go to admin-structure > features > create feature.
In that you can see General information(left side) and Components(right side). The General information provide some name in the name fields and you can see views in Components. You just select what are all views are needed for that site.Click the Download feature button.
It will downloaded!!!
After that copy the downloaded file to new drupal site which has drupalroot > sites > modules.
Go to your "new drupal site" as (Admin-Structure > feature). You can see the folder name as list in that. Enable the folder name list and click "Save settings". After the save setting finished as good then deselect the folder list, click "save settings" and delete the downloaded folder in module folder.
Note:
The folder name list should not state as conflict. If it presents, then click the recreate button.
VS2008 Web Service Project missing Data Menu and Data Sources:
Simply invisible, Can't find it and just cant add a connection to my database using that wizard. why is it missing?
For me the 'Data' menu is not available for a web application. Not exactly the same issue, but similar.
I found that if I navigate to the 'Server Explorer' (Ctrl+W, L) (also found via menu item 'View'->'Server Explorer'), and highlight a defined data connection my 'Data' menu choice reappears. But the sub menu choices are different. Rather than having 'Data'->'Show Data Sources', or 'Data'->'Add New Data Source...', I get 'Data'->'New Query', and 'Data'->'Modify Connection...'.
Use View --> Server Explorer.
Happens only when I set up a WebService project.