307 questions
0
votes
1
answer
87
views
Query with aggregate function and left join works correctly in Access but return incorrect result when connected from Excel
I am linking to tables in Snowflake from Access and running the following query:
SELECT SIMS_CLAIMANTLOG.LOGID
, Sum(IIf([processeddate] Is Not Null And [reservetypeid] In ("2","3&...
1
vote
0
answers
238
views
View Query Definitions for MS Access Databases via DBeaver
I am attempting to connect to an MS Access database via DBeaver and wanted to know if there is a way to view the SQL code behind my Access queries. I have hundreds of SQL codes so it would be a hassle ...
0
votes
0
answers
268
views
Unable to connect to DB2 using JDBC with python3
I have tried to connect to DB2 with python using JDBC with the code below but somehow it shows me the error
My code:
import jaydebeapi
import jpype
jaydebeapi.connect('com.ibm.db2.jcc.DB2Driver','jdbc:...
0
votes
1
answer
151
views
How do I give a database path to ODBC Microsoft Access Driver with ampersand in it?
My database path name has an ampersand in it. "...\mthly calcs & projections...".
Unfortunately, the path name cannot be changed. How do I deal with this case? Is there a way to specify ...
5
votes
1
answer
6k
views
gradle build failed due to dependency lock state
i have newly added a below dependency into my project
implementation 'org.jdbi:jdbi3-oracle12:3.29.0'
these are the dependencies which i already have in my project.
dependencies {
implementation 'org....
0
votes
0
answers
315
views
Synapse Spark executing SQL (via JDBC driver) funkiness - can't update newly created column, error is "Invalid column name"
If I run this SQL via SSMS (Sql Server Management Studio) there is no issue.
IF NOT EXISTS (
SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'[dbo].[MyTableName]') AND name = 'Created'
)
...
1
vote
0
answers
326
views
MongoDB ODBC Connector is not able to fetch new fields/columns Into BI. currently using CData connector, it giving error
Apart from MongoDB ODBC Connector I found some third party connectors
CData: https://www.cdata.com/drivers/mongodb/odbc/
devart: https://www.devart.com/odbc/mongodb/
EasySoft:
https://www.easysoft....
0
votes
0
answers
3k
views
How to Connect to Databricks table from c# code using JBDC/ODBC?
I have created a c# windows service and want to Connect to Databricks Delta table from c# code using JDBC/ODBC connection with below host for updating/inserting in couple of databricks delta tables.
...
0
votes
1
answer
361
views
How to replace a string in a string with integer type in java?
I have a requirement. The technology is quite old doesn't support spring at all . It is pure java application with jdbc connection.
Requirement is :
Suppose
select * from employee where empid = <&...
1
vote
0
answers
2k
views
JDBC Driver error when connecting to Snowflake through DataGrip
Sorry to reach out, I searched for an answer but I didn't see anything relating to my specific issue, sorry if I missed it.
I used to connect fine to Snowflake using Datagrip with JDBC driver 3.13.5.
...
0
votes
1
answer
1k
views
Oracle 19c JDBC (Instant client basiclite) driver Issue
I working on upgrade the oracle jdbc driver from 11g (ojdbc6.jar) to 19c (ojdbc8.jar) in my java application, driver used is Instant Client (instantclient-basiclite-nt-19.11) with JRE1.8.0_271. After ...
1
vote
0
answers
222
views
Accessing Excel as a database using groovy.sql [duplicate]
I am trying to access Excel as a database using the groovy.sql package, which is a GDK extension to JDBC. I am aware that Excel is not a database and that for most tasks Apache POI works better. I am ...
0
votes
0
answers
131
views
SQLSyntaxErrorException ORA-00933 on fetching data using get query
private static final String GET_OBJECT_WITH_PREFIX =
" SELECT OBJECT_KEY, OBJECT_VALUE, LAST_UPDATE_DATE from TEST_TABLE "
+ " where OBJECT_KEY like ? "
+ &...
4
votes
1
answer
1k
views
"java.sql.SQLException: Missing IN or OUT parameter at index:: 1" when calling function
While calling SimpleJdbcCall.withFunctionName I get java.sql.SQLException: Missing IN or OUT parameter at index:: 1
SimpleJdbcCall simpleJdbcCall = new SimpleJdbcCall(myDataSource)
.withCatalogName(&...
0
votes
0
answers
209
views
SQL query stalls the system when connecting through python
My data is too big and it's around 19M and it takes too long to execute this query. So, I introduced chunks but still, I am not sure if this is the right way to do it. Is there a way to read large ...
0
votes
1
answer
2k
views
TO_DATE ('01/01/1980','dd/mm/yyyy') is not working when calling oracle database from Java
In SQL Navigator(Oracle) the following three queries are working
SELECT * FROM some_table a where TO_DATE (A.CREATE_DATE, 'dd/mm/yyyy') BETWEEN TO_DATE ('01/01/1980','mm/dd/yyyy') AND TO_DATE ('01/01/...
0
votes
1
answer
124
views
JavaEE Servlet Oracle connection [duplicate]
I try to connect my JavaEE to the Oracle database. If I test the connection from any IDE like DBeaver or from a command prompt there is no problem. I use Eclipse for IDE and Windows 10 for OS. What I ...
1
vote
0
answers
43
views
What is the newest version of Netbeans that works with Java 2 (j2sdk1.4.2_19)
My company is using WebToGo for managing our Service Requests. I had written a program to extract a list of our service requests in a more faster, more user-friendly way than is otherwise available. ...
0
votes
0
answers
18
views
Cannot connect to MS Access using UCanAccess [duplicate]
I'm using DbVisualizer Free 11.0 [Build #3077]
OS: Windows 10
OS Arch: amd64
Java Version: 1.8.0_242
Java VM: OpenJDK 64-Bit Server VM
Trying to create UCanAccess driver using the following theme:...
-1
votes
1
answer
2k
views
Class.forName("oracle.jdbc.OracleDriver"); generates exception: java.lang.ClassNotFoundException
I'm trying to make a program that connects to an Oracle database for the ultimate purpose of creating a few tables and running commands on them for a course I am taking. I'm currently trying to make ...
-1
votes
1
answer
228
views
MY JDBC program compiles successfully but does not runs with exception [duplicate]
My Program runs successfully but gives an exception at the runtime.
I have followed all the 8 steps to make a JDBC program.
The code and image showing the exception are given.
I have also created my ...
1
vote
1
answer
361
views
ODBC Microsoft Access Error: Syntax error in update, delete statement
I am writing a java program which connects with Ms Access using ODBC-JDBC Driver.
The Select and Insert Into Statement are working correctly but delete and update statement are showing syntax error. I ...
0
votes
1
answer
984
views
Global temporary table clears on commit
CREATE GLOBAL TEMPORARY TABLE "TEMP_TABLE"
(
COLUMNS...
) ON COMMIT PRESERVE ROWS ;
I am calling the global temp table from java jdbc innser sql
Global temporary table clears on commit ...
-3
votes
1
answer
2k
views
Need to fetch data from database and store it in excel using java
I have to export data from database to excel sheet by using java.I have around 500+ column in DB, so need help in code where i need not to put the column name. I got some code from internet, but its ...
2
votes
2
answers
19k
views
com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime
I has db in MS SQL Server 2005
I has java project write on java 8. My project is on Windows 7 Professional's machine (64 bit).
I use this jar: sqljdbc4.jar to connect to MS SQL Server 2005.
But ...
0
votes
2
answers
1k
views
Support for Google BigQuery JDBC Driver using KNIME
I get an error when using the following JDBC driver to retrieve BigQuery data in KNIME
The Error Message is in the Database Connection Table Reader node as follow:
Execute failed: " Simba ...
0
votes
1
answer
241
views
Adding result set into ArrayList take so much of time
Here is my code where i am running my query and adding result set into ArrayList .
Modified code
private ArrayList<String> getEventsFromShares() throws SQLException {
Statement eventStmt = ...
-1
votes
1
answer
2k
views
Incompatible data types(hypersql)
Why should I get incompatible data types error?
int blockSize = 100;
String city="London";
" select * from"+
"(" +
" select l.* from lottotable as l where l.city='"+city+"' and l.date< cast('"+...
0
votes
0
answers
1k
views
Internal OLE Automation errors
I've got a legacy project which runs some queries every minute to an Access database. All the queries work fine but after a certain amount of time (multiple weeks) and then all of a sudden Internal ...
0
votes
1
answer
71
views
Java & Access Database
I am trying to select records and view it in a JTable. My records are in Ms Access database locally in my computer. While trying to run the program i am getting an Null point Exception error, pointing ...
0
votes
1
answer
541
views
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor on server
I am getting ORA-12505 whenever trying to create a connection when pc is on the server.
If I disconnect pc from the server then connection creating. but when I connect pc to the server then I am ...
0
votes
1
answer
5k
views
Missing artifact oracle:ojdbc6:jar:11.2.0.3
I am facing "Missing artifact oracle:ojdbc6:jar:11.2.0.3" issue. I went through a lot of blogs but was not successfull.
I tried with ojdbc14, ojdbc7 as well and I am not able to proceed further.
POM ...
0
votes
1
answer
413
views
Java - SonarLint Detect the Blocker - Close this "PreparedStatement" in a "finally" clause
Title : Java - SonarLint Detect the Blocker - Close this "PreparedStatement" in a "finally" clause.
Question : I have multiple PreparedStatement in one method (example), then I have done close the ...
1
vote
0
answers
737
views
Is it possible to connect to derby through odbc
Is it possible to connect to the derby database through odbc on a windows 10 machine? I have the jdbc-odbc bridge from Java 7. Found this:
Derby network server
The Derby network server provides ...
-1
votes
1
answer
678
views
JDK7 runtime error: Data source name not found and no default driver specified
I'm getting run time error
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
when I tried to login using the code given. Below is ...
-1
votes
1
answer
626
views
JDBC Pagination Oracle get 1000 at a time execute then get next 1000
I'm using this code to get 1000 records at a time. It works fine but how do I stop at the 1st 1000 run my job, then pick up where I left off and get the next set 1001 - 2000, run the next job and so ...
1
vote
0
answers
84
views
Connect ODBC Driver that is in remote machine
Usually, we connect ODBC driver using BI applications on our local machine,
Just imagine I created an ODBC driver for PostgreSQL in the remote machine at my home (Windows 10), I want to connect that ...
8
votes
3
answers
15k
views
Occurrence of org.hibernate.exception.GenericJDBCException: Could not open connection for long running process
In my application I use 20 threads for a job. Each thread calls a remote web service and updates the Oracle DB. After Jboss restart , the job fails in updating the db, with the exception that I find ...
0
votes
0
answers
75
views
Not able to create DSN for oracle 12c in windows 10
I want to run my JDBC application jdk(1.7) with jdbcOdbc Bridge Driver(Type - 1 Driver). I am using Oracle 12C and windows 10 OS.
I am getting this error massage when I am trying to register DSN.
...
0
votes
3
answers
115
views
Is this declaration of ODBC driver correct?
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//System.out.println("Driver loaded");
String url = "jdbc:ucanaccess://"+path;
con = (Connection) DriverManager.getConnection(url)...
0
votes
1
answer
402
views
unable to write data in sql database by java but reading successfully
I'm using the code below:
JButton btnEdit = new JButton("Edit");
btnEdit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
try{
String ...
0
votes
1
answer
586
views
Can Microsoft JDBC Driver 4.1 be used with Microsoft ODBC Driver 1.0?
I need to upgrade sqljdbc4.jar to sqljdbc41.jar.
Microsoft website has the following information:
sqljdbc41.jar class library provides support for JDBC 4.0 API. It includes all of the features of ...
1
vote
1
answer
173
views
Java Application. Undefined function 'replace' in expression
My Java application works well on two of my colleague's computers, however it will not run on mine.
The application reads a spreadsheet, creates tables in access from it and then compares them. The ...
0
votes
1
answer
266
views
From WLS - Datasource connection object Types.ARRAY is not working
I am using WLS 12.1.3 and oracle is 10.2.0, I am using weblogic datasource to get connection
This is the code,
CallableStatement cst = null;
try {
cst = conn
....
2
votes
1
answer
1k
views
Using UCanAccess instead of the JDBC-ODBC Bridge for working with DBF files
I'm using NetBeans IDE 8.2 and would like to make a connection with UCanAccess to access my database files. Initially I was using jdbc:odbc but I found that Java 8 onward no longer supports this ...
0
votes
0
answers
888
views
While opening Oracle From Excel, it shows the error "The specified DSN contains an architecture mismatch between the Driver and Application"
While Opening instantclient_12_1 in Windows 7, from Excel it shows the following error.
"The specified DSN contains an architecture mismatch between the
Driver and Application"
I will provide the ...
0
votes
0
answers
32
views
Exception : java.lang.ClassNotFoundException on MS Access Database [duplicate]
I am trying to create a link to my Microsoft Access Database, but I get the error:
Exception : java.lang.ClassNotFoundException
Here is my code:
import java.sql.Connection;
import java.sql....
0
votes
0
answers
184
views
Traverse to all parent table of a given tables
I am currently doing standalone application, to traverse to all its parent table and traverse till child table has no parent.
example
Table1
|_ Table 2
|_ Table 2.1
|_ Table 2.2
...
0
votes
1
answer
2k
views
Tibco-JDBC: Connection test failed
I am trying to connect to database in tibco bw 5.12.0.
In test connection i am getting below error in popup
"AEADB-800064: Connection test failed.
([tibcosoftwareinc][Oracle JDBC Driver]No more data ...
0
votes
1
answer
721
views
While installing instantclient_12_1 in Windows 10 it shows the following error
While installing instantclient_12_1 in Windows 10 it shows the following error.
I will provide the Image of the error after we select the from instantclient_12_1 from Data Source (ODBC)
it was the ...