The idea of SQl injection is to convince the application to run SQL code that was not intended
The attacker can know the table names from the error messages (error (server failure) returned by the SQl server.
First apply blind SQl injection And some guess work will get you the error messages that will have useful information. From this information shown by the error messages ,one can have the database table names
Regards