Questions tagged as 'jdbc'

1
answer

"Android Studio 3.1.2" connection error jdbc and mysql

I have already "scrutinized" this web in search of the solution to the problem of the connection with MySql through jdbc and I see that some users have achieved it, without the Webservice. The error message you tell me is:    Error: java.l...
asked by 07.06.2018 / 18:31
2
answers

Error creating Database in Java

I try to create and access a java database, I am using the postgresql-42.2.2 library. This is my method: public static void main(String[] args) { Connection c = null; try { Class.forName("org.postgresql.Driver"); c = Driver...
asked by 05.06.2018 / 23:45
2
answers

How to modify this query in SQL

I have this query in SQL: SELECT datname FROM pg_catalog.pg_database WHERE LOWER(datname) = LOWER(BaseDatos); But I am running it from java with jdbc, and I need to pass the result of the query to a ResultSet, but the problem is that when t...
asked by 06.06.2018 / 04:37
1
answer

Problems with the preparedStatement

Thanks for your attention I would like to ask what the problem is in my code, I am doing a query with Java but when going to the preparedStatement it tells me that the connection is closed and can not execute any more operations (MySQLNonTransie...
asked by 05.06.2018 / 19:04
0
answers

Connect jdbc sqlserver in soapui MockService

When making a connection to the sql server in a MockService using soapui version 5.4 I get the following error:    INFO: groovy.lang.MissingPropertyException: No such property:   connectionUrl for class: Script1 The code I have is the fol...
asked by 28.04.2018 / 00:17
1
answer

Error sql server: must declare the varialble scalar PO @ and

I edit the question. I'm creating a Jtable that feeds from a BD Sql server. The procedure for the query is this: private static final String SELECT_FILTRO_FECHAS="SELECT REPOSTAJES.ID, FLOTA.MATRICULA,REPOSTAJES.NUM_FLOTA,REPOSTAJES.FECHA,REPO...
asked by 12.04.2018 / 23:08
1
answer

Connection to Sql Server by JAVA - Windows Authentication

I want to connect to Sql Server using Java with Windows Authentication but I get the following error: This driver is not configured for integrated authentication. ClientConnectionId: 0b65956b-a286-4aef-a372-ab741a239761 This is the code I use...
asked by 09.02.2017 / 20:20
1
answer

Tomcat: user does not have sufficient privileges or object not found

I'm trying to access an access file from a web application using the jdbc ucanaccess 4.0.3 driver. The tests when building the used jar are executed without problem. Application Context in jar file: <context:annotation-config /> <...
asked by 23.02.2018 / 13:51
0
answers

Why does not my Android application connect correctly to the Database?

Good, I am developing an app in Android Studio and it fails to make the connection to the remote database (I know it gives an error there because it catches the catch and does not pass that line when running the program). My problem is that I c...
asked by 25.01.2018 / 16:57
1
answer

In what format is the date entered in MySQL?

In class we work with java and we have started with the databases, we use the MySQL Driver Library JDBD (I do not know if this influences anything, forgive my ignorance) and I would like to know when entering a date in a table , in what order th...
asked by 18.01.2018 / 10:12