Explore ODBC Database From Netbeans - netbeans

I've been Googling this for a while now without much luck, but I suspect if it is possible it should be quite straight forward...
I have an ODBC connection set up within Windows to Sage 50 Accounts, with the DSN of SageLine50v22. I can browse through the Sage database using standalone ODBC programs, but I was wondering if it's possible to connect to it from Netbeans (v8.1) directly, so that I can browse through the database from within the IDE, in the same way I could with a MySQL or SQLLite connection? Please note - I am not trying to connect my actual code to the database - I only want to be able to browse it (I think the Sage ODBC connector is one way only anyway).
I was trying to use the Oracle/Oracle Thin drivers, since the driver is called ODBC7.jar, but I'm beginning to suspect I may be barking up the wrong tree, since all the Google results seem to indicate this is for connecting to ODBC programmatically using Java. Can any one clear this up for me?

Related

Enable JDBC in PostgreSQL for non programmer

I am looking for someone that can explain me in simple terms with written instructions how to create a JDBC in PostgreSQL (I am losing my mind with this). I found other answers in this page and others but I couldn't follow them.
I am no programmer, so I didn't undertand any of the instructions of how to do it in webpages and forums -the method mentioned was configuring the classpath environment variable in the command prompt but I got stuck in the command prompt, I think I have to configure the Java console or something.
I am learning some data mining and I wish to connect to some databases in order to practice. I suppose that for someone knowledgeable in this area this should be an easy job.
I prefer to install a driver in postgresql and not using a bridge.
Thanks a lot!
The phrase “how to create a JDBC” makes no sense.
You need to learn some basics first. Be clear on what JDBC is (a standard for connecting or mediating between a database and a Java app), what a JDBC driver is (a particular implementation of JDBC for a specific database.
There are four types of JDBC drivers, the Type 4 (pure Java) being most common in my experience.
For any particular database, you may find there are zero, one or more drivers implemented and available. Some are free-of-cost and open-source, some are not. For example, in Postgres there are two open source drivers, the classic one and a newer rewrite-from-scratch one, as well as some commercial products.
A JDBC driver is only useful when trying to connect a Java app to your database. That may be your own app you are writing, or a finished app you obtained such as a database-administration tool.
You must have a Java implementation installed on your computer, such as one from Oracle or from the OpenJDK project, or from another vendor such as Azul (Zing & Zulu).
You need to learn about the Java Classpath, the list of all the folders where the JVM will be looking for Java classes and JAR files. Read the Oracle Tutorial. The easiest way to go is to drop your JDBC driver JAR into an already existing folder on the Classpath, so you do not need to twiddle with setting the Classpath. For example, on a Mac you could drop your driver into /Library/Java/Extensions.
The JDBC driver sits between the database engine and the Java app. You do not install the JDBC driver into the database engine, such as your Questions mentioned, “install a driver in postgresql”.
[Postgres] ↔ [JDBC driver] ↔ [JVM] ↔ [Java app]

How do you provide SQL with your software to a client?

I am new to SQL and I have a few silly questions I am wondering about.
I am a C# developer and have thus far only worked with access, .mdb files.
Let's say you develop some software for a client. It;s to be loaded on a few workstations and they need to connect to a central database.
When you use an .mdb file its pretty straight forward.
But how will you handle it if its SQL? Do you normally install SQL express on the server and just set the connection string in the software on the workstations. I've never heard of an easier way to get the SQL database up and running and available to be connected to. As far as I know you can't connect to a SQL database file like with an mdb file
Please help me understand a little bit better?
Assuming that you're going to deploy a web application, the SQL need to install in the server, then the website developer set their connection strings in the web.config file of the project, and the connection string is pointed to server.
you can read this regarding web.config: https://msdn.microsoft.com/en-us/library/bf7sd233%28v=vs.85%29.aspx

Integrating eclipse with db2

I was doing a project related to the IBM competition and need to create a web application. I have done a web application before by connecting netbeans and mysql. But, now am facing problem right from installation.
Is there any workbench(like something for mysql) for db2 . If so can anyone give a link. Also, I need to make jdbc connections. So, is there any other software I need to install.
Kindly explain to me in detail as I'm not pretty sure about this.
All you need is a DB2 JDBC JAR. Pick the appropriate one for your version and add it to your CLASSPATH.
You should use either a DB2 admin client to create tables and view data or something like SQL Squirrel.

Birt Eclipse, connecting to a SQLite database through ODBC? Do I need a specific JDBC driver for Birt to use?

I have been working on this for a while now and, unfortunately have little previous exposure to Birt as well as JDBC / ODBC. I've been searching and searching but can't conclusively figure out what I need for Birt to be able to connect to an SQLite database through ODBC.
I have setup the SQLit db on my windows machine to use ODBC. From here, however, I can't figure out, in the Birt Report Designer-> New data source-> JDBC data source what I am supposed to put in in order to access the DB.
Do I need a specific driver for this that I need to install to use as the "Driver Class"
Is the path to my ODBC / SQLite db the "Driver URL" field?
I would greatly appreciate any advice on this.
There is a JDBC driver specifically for SQLite, so you don't have to use a bridge.
The URL should be:
jdbc:sqlite:/path/to/my.db
The class is org.sqlite.JDBC.
As the initial answer points out, you can download the SQLite JDBC driver. Once downloaded, you need to correctly deploy the JAR into BIRT so the driver will be available in the eclipse designer. Put the JAR in:
<BIRT Install>\eclipse\plugins\com.actuate.data.oda.jdbc.drivers_<BIRT VERSION>
Once the JAR is there, re-start Eclipse/BIRT and you should be able to create a SQLite data source pretty easily.
Good Luck!

best sql client for linux *box window manager

I am using ARCH Linux and Awesome3 WM.
I am looking for a good sql client for multi database include mysql postgre oracal.
Squirrel sql seems good, but I got a blank window after launch it.
Any solution for this problem or there is another better client for me?
http://henplus.sourceforge.net/
It's not a GUI, but it works with any database that has a JDBC driver (including MySQL, PostgreSQL, and Oracle), and I like it.
Several tiling window managers might have problems with java applications. Take a look at this page: http://awesome.naquadah.org/wiki/Problems_with_Java.
Especially try the workaround using wmname.
As a DB frontend you might try DbVisualizer. If you are using Eclipse to develop your application, "Eclipse SQL Editor" might be of interest. Sorry, Stackoverflow spam protection doesn't let me to provide a hyperlink for that one.