![]() | |
#11
| |||
| |||
|
|
Ed Prochak wrote : Actually it is not surprising. AFAICT, they assumed you know which DBMS product you are connecting to, so once connected, you do not need a WHO AM I feature. I'm not asking for a "who am i" feature, but just a simple SQL query that allow me to check that I'm actually connecting to something real. |
|
Good luck. Keep us posted on you progress. Actually I'm using Hibernate to connect on several different DBMS. So I did post a similar question on hibernate forums, but still waiting for an answer. -- Hugo |
#12
| |||
| |||
|
|
Well presumably (I never used Hibernate), you have a connect command/function. It retrurns either success or failure. So what more |
#13
| |||
| |||
|
|
Hi there, I'm looking for a simple and quick SQL query with no side effect, that runs on most databases (at least Oracle, MySQL and PostgreSQL). I need that to test my database connection. I tried "select 1" but it does not work under Oracle. Any other idea ? -- Hugo |
#14
| |||
| |||
|
|
Ed Prochak wrote : Actually it is not surprising. AFAICT, they assumed you know which DBMS product you are connecting to, so once connected, you do not need a WHO AM I feature. I'm not asking for a "who am i" feature, but just a simple SQL query that allow me to check that I'm actually connecting to something real. I haven't tried this yet, but maybe you could do a query on the system |
#15
| |||
| |||
|
|
Hi there, I'm looking for a simple and quick SQL query with no side effect, that runs on most databases (at least Oracle, MySQL and PostgreSQL). I need that to test my database connection. I tried "select 1" but it does not work under Oracle. Any other idea ? |
#16
| |||
| |||
|
|
I'm looking for a simple and quick SQL query with no side effect, that runs on most databases (at least Oracle, MySQL and PostgreSQL). I need that to test my database connection. I tried "select 1" but it does not work under Oracle. Any other idea ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |