I want to check what type of sql is running on a Datasase server that I can access. I only have access to a web interface and a list of tables.
Through the interface I can run queries on the tables that are present on a list.
How can I get more information about the server and the version that the server is running. I have no idea about the IP or the PORT that the server is running.
I want to know if the server is MySQL, Mircosoft SQL Server, Oracle SQL, Postgre SQL or other sql server.
The website that I am talking about is this one:
w3schools.com SQL editor.
EDIT 2: although for some the command select sqlite_version() works for me it does not work. This is the screenshot of the response.
EDIT 3 :
On Chromium Browser the command is working properly. However on Firefox Browser the command did not work.
I also mention that I am on running Linux.
What do you think could be the reason why on Firefox and on Chrome I get different results ?
Best Answer
I assume that your web interface lets you issue SQL commands. If so, you can use:
PostgreSQL
If you are on a PostgreSQL database, you get a response similar to
MySQL
If you are on a MySQL database, the answer looks like
Oracle
If you are on an Oracle database, you'll get an error message:
(The ORA-xxxx tells you you're on Oracle). To find out which specific version, try:
You'll get a response like:
Microsoft SQL Server
If you're on MS SQL Server, the response will also be an error, and look like:
In that case, you can try:
And you'll get, as a response, something looking like:
SQLite
If you're on a SQLite database, you'll get an error message when you try
SELECT version()
:In that case, you can try:
And the response will look like: