How to know which database is behind a web application?
Answers
Answer:
One of the simplest ways for an attacker to determine what database is being used by an application would be to cause the application to error in some way with a database query.
Then if error handling isn't enabled within the application ( which often its not ) the database error will be shown. These are usually quite detailed and you can determine the database from that.
Its also worth considering if you know any of the following the language the web application is written in, the framework being used, the platform that is being used, the hosting provider e.t.c. they can all help work out what database is being used. For example if they are using asp most likely be using MSSQL and if they are using PHP most likely MySQL. This isn't true all the time obviously but if you where having to guess for say a blind sql injection attack its another way of narrowing things down.