What is the Progress equivalent to SQL Management Studio? - progress-db

I have a progress database that I need to connect to. What is their equivalent to the SQL Server Management Studio?
The server appears to be Progress OpenEdge 10.1

It depends a bit on how deep you really want to go but "OpenEdge Management" is probably the closest.
If you just need to start & stop the db and take care of routine maintenance you don't need OE Management -- all of that stuff is "in the box" either via "Progress Explorer" or scripting (depending on your taste) and a few utility programs.
To just browse the SQL any standard SQL tool will do. "Squirrel" is a popular option.
OpenEdge does contain a command line tool "SQL Explorer" that you could also use -- it is installed in %DLC%\bin\sqlexp.exe

Related

How do I change an entity framework project to use Microsoft SQL Server

I am trying to debug a program using Entity Framework code first on my personal (work) computer.
We have recently had a domain migration, meaning that the user I log in as now is not the same that I used before. This caused me to loose access to the databases I had on the computer. To get around this, I have uninstalled everything to do with Microsoft SQL Server on the computer, and installed the latest version of Microsoft SQL Server, 2014 - 12.0.4213.0 . I then restored the database I need.
When I first tried to run the program, Visual Studio complained that the project is set up to use SQL Server Express, which was not installed. The recommended solution is to change the project to use SQL Server instead. To do this, I must click on "the database file" and follow the instructions. I have looked through the entire solution. There is a great many files, but I found no good candidate for "the database file."
It seems that my Google fu is not strong enough to find anything about this. So my question is: how do I change the project to use SQL Server?
I also have a second, related question. I tried to solve the problem by installing SQL Server Express. However, when I try to restore the database to this, no base appears in the drop down list. When I try to run the program now, I get another error:
Unable to create the file 'c:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\Timelønsblanket.mdf' because it already exists.
I guess that this is also why I cannot restore the database. What I have found in websearches warns that I should not manually delete .mdf files.
Any advice on what to do?
I have solved the problem. All that was needed was a correct connection string. No need to find a "database file".

Automated execution of a powershell script on Active Directory, Triggered from a web page

I am proposing an idea for a final year project that is basically a virtual environment. I would be using Citrix XenServer in conjunction with Windows Server 2008 R2 and Citrix netscaler to make the server accessible over the web. I would also be hosting a website on the server that Windows is on.
What I was wondering is, would it be possible to trigger the execution of a script on the server from the web page. So basically a user comes along, goes to my website, registers their details. a csv file is then produced based on the details that are input. Then I was wondering is there a way to trigger the execution of a powershell script that would use the csv file to set up the user in Active directory. The powershell script itself is simple its just how I would get it to run is another thing.
Yes it is possible.
PowerShell lets us create graphical interfaces with the .NET winforms. With it, we can build front end to manage our scripts. It's a really nice feature, and tools like AdminScriptEditor make it pretty easy.
I have found this link for your reference - PowerShellOnWebPage
You can tweak/create the script as per your need.
Let me know if this helps.
Thanks!

How to use a scripting language to change settings in MMC Snapin

I've been building a script to setup a MSSQL server in PowerShell, but I'm stuck at this point. I can't figure out where the SQL Server Configuration Manager SnapIn is saving the data and I can't figure out how to access it via COM.
Is there a way to change MMC settings (command-line) without having to click through the GUI?
Almost all the settings you change in SQL Server are stored in SQL Server somewhere, which means TSQL is used to make those changes. My favorite trick is to run SQL Profiler against a database while changing its settings. You can then see the SQL being used to modify the settings you need, which you can execute from your script. Very useful

Eclipse plug-in (OpenEdge Architect 10.2B) blocked by firewall

Yesterday I installed OpenEdge Architect 10.2B (that is Object Oriented Progress adopted to Eclipse IDE) on my Windows 7 premium platform. The installation went fine without any error messages.
When I start OpenEdge Architect I get the following error message:
"Not licensed to run OpenEdge Architect for version 10.2B".
This error message is strange since it is not the case.
Also, it seems like parts of the Eclipse-plugin are blocked
The main menu looks ok
In the views there are error messages like: "Could not create the view: Plug-in com.openedge.pdt.text was unable to load class com.openedge.pdt.text.explorer.OEExplorer...."
I noted that if I open my firewall (F-Secure) and choose to allow all, then everything works fine but then, of course, the computer is vulnerable. Then I thought I should abandon the F-secure firewall and use Windows firewall instead, setting up exceptions for OE Architect. But at this point I can not see what the exceptions should be since there are plenty of processes involved!
Any suggestion on how to proceed? How can I see what is blocked (is it Eclipse related or Eclipse plug-in related or is it something else in the OpenEdge package?)
Migrated from https://softwareengineering.stackexchange.com/
I solved the issue, this is how I did it:
Open F-secure, change the firewall setting to allow all.
Open Windows firewall, turn it on.
Start OpenEdge Architect
A warning from Windows firewall appears a .\jre\bin/javaw.exe is blocked by the firewall, check the allow boxes and press "Allow access".
Done.
It my be that the license manager is a process itself thatthe Architect is only connecting to - thus the problem with the firewalls. Most of this stuff is either a java process or one of the processes from your \bin directory. To figure out which process is trying to open which port, open a command shell (windows+r, enter 'cmd' and press 'run'), and then run 'netstat -ao', which gives you a list of all processes running and the ports thy are listening on. If you search this list while running the Architect with your firewall turned off, you might be able to find the processes involved with licensing (either a java process or one of the binaries from the aforementioned 'bin' folder).
hope that helps!

Eclipse plugin for psql/PostgreSQL code?

Do you have recommendations for a good PostgreSQL editor plugin for Eclipse?
The PostgreSQL code I have isn't very complex. However I'd like to edit it with syntax-coloring, decent auto-identation, code completion, etc., and it would be sweet to be able to send blocks or entire files to a jdbc connection and get the results. Up until now, I have edited my .sql files with Emacs, and try things by copying/pasting segments into a psql terminal I have next to Emacs. Some of my code uses the psql primitives such as \set var value etc. For example:
\set t mytable
drop table if exists :t;
create table :t (...);
However I would be happy to eliminate this and refactor the code to be proper PL/pgSQL functions. Or perhaps better, implement the dependency and procedural logic in Java and issue the sql queries via JDBC. I still need to edit the sql files and try bits and pieces of them during development.
I tried the "official" Data Tools Platform (http://eclipse.org/datatools/) and configured it to use my localhost:5432 (which in fact is a port-forward via SSH to the actual PostgreSQL server that I'm using). However, connecting to the DB hangs for several minutes (Eclipse doesn't even refresh the screen). In general it feels quite heavy/slow
and I'm always afraid of if hanging without ability to interrupt it (it happened a few times and the only solution is to kill Eclipse; as you probably know, killing Eclipse isn't good as it's very hard/impossible to recover unsaved files).
The other plugin I tried is Toby's PL/SQL editor (https://sourceforge.net/projects/plsqleditor/), which seems very nice and promising, except the last signs of life on the sourceforge forums appear to be around 2007. Also I couldn't configure it to use the postgresql-9.0-801.jdbc4.jar that I have, and so I am unable to connect to my DB.
Any suggestions gladly appreciated.
A free Eclipse plugin for Oracle and PostgreSQL can be found at http://www.toadworld.com/products/toad-extension-for-eclipse/default.aspx
The plugin is in development.