Top "Sqlexception" questions

An exception that is thrown when the database driver encounters an error.

java.sql.SQLException: No suitable driver found for jdbc:microsoft:sqlserver

I'm getting this exception when I try to run this program. It's one of the Microsoft examples. I've added the …

java sql-server jdbc driver sqlexception
conversion of a varchar data type to a datetime data type resulted in an out-of-range value

I have the following piece of inline SQL that I run from a C# windows service: UPDATE table_name SET …

sql sql-server service sqlexception
How to catch a specific SqlException error?

Q: Is there a better way to handle SqlExceptions? The below examples rely on interpreting the text in the message. …

c# exception sqlexception
When is SQLiteOpenHelper onCreate() / onUpgrade() run?

I have created my tables in my SQLiteOpenHelper onCreate() but receive SQLiteException: no such table or SQLiteException: no such column …

android sqlite android-sqlite sqlexception sqliteopenhelper
java.sql.SQLException: Incorrect string value: '\xF0\x9F\x91\xBD\xF0\x9F...'

I have the following string value: "walmart obama 👽💔" I am using MySQL and Java. I am getting the following exception: `…

java mysql encoding character-encoding sqlexception
Java java.sql.SQLException: Invalid column index on preparing statement

my code below query the database for a set of rows based on user input. I have tried and tested …

java oracle jdbc sqlexception
What does "if (rs.next())" mean?

I am currently getting the error, java.sql.SQLException: Method 'executeQuery(String)' not allowed on prepared statement. because I …

java string prepared-statement resultset sqlexception
Catch duplicate entry Exception

How can i catch this Exception : com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '22-85' for key 'ID_…

java mysql hibernate jpa sqlexception
SQLException: No suitable driver found

I have a Java class that accesses a MySQL database through JDBC that I use in a JSP running on …

mysql jsp tomcat jdbc sqlexception