Netbeans and Databases

As of now, to use a database in my application(mySQL for example)  I download the driver .jar file add it to my classpath and everything works great.  I was wondering what happens when you add the driver through the runtime tab in Netbeans?  Is this the proper way to use databases?  Once I connect to it what can I do?  Bascially I'm looking for an explantion of this feature.  I looked in the help file, but all I got was a how-to, not a why.

Thanks.
turtletimerAsked:
Who is Participating?
 
aozarovConnect With a Mentor Commented:
Its basically an integrated standard jdbc client with a nice UI to present the schema and editor to send sql commands and see the results.
0
 
aozarovCommented:
>> Is this the proper way to use databases?
You can run your application from netbeans as you run it from the command line.
Just add the needed classes (that you use for the program) in the Runtime Classpath option.
0
 
CEHJCommented:
>>Once I connect to it what can I do?

What do you *want* to do?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
aozarovCommented:
>> needed classes
Means also any supported jars (e.g mySQL driver jar)
0
 
turtletimerAuthor Commented:
>>You can run your application from netbeans as you run it from the command line.
>>Just add the needed classes (that you use for the program) in the Runtime Classpath option.

I know I can do this and it works great.

>>What do you *want* to do?

I don't know what I want to do with it because I don't know what I can do with it.  


Okay fellas, I was just looking around in Netbeans and I saw this.  I have no idea what it does or what it can do.

My Question:

What can you do with the Database tree item under the Database tab?
0
 
aozarovCommented:
>> what can you do with the Database tree item under the Database tab?
This is just a DB client where you can connect and send sql queries in editor and also
see the list of tables. For connecting to a DB you will need to configure the driver, jdbc url string username and password
0
 
CEHJCommented:
Try creating a few tables and then querying them after populating
0
 
turtletimerAuthor Commented:
I don't have a database to connect to and test.  This is why I had no idea what it's purpose was. Thanks.
0
 
aozarovCommented:
NP. :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.