Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 22
Registered: ‎09-16-2011
My Device: curve8300
My Carrier: Rogers

How to access database from my application

Hi, IM a new developer, i want update and display informations from my database, currently i can't use anything that is component 5.0 above, so i can only use component 4.7 or anything below, so anyone have suggestions what kind of connection should i use to connecting database, also can anyone provide me some code examples please.

Highlighted
Developer
Posts: 466
Registered: ‎03-04-2009
My Device: 8520
My Carrier: some

Re: How to access database from my application

SQLite is available from 5.0+ . In your case, I guess there's no way to use db unless you find some third party (there are some).
To access files on your BB filesystem utilise FileConnection class.
Got resolved! Press kudo icon!
Contributor
Posts: 22
Registered: ‎09-16-2011
My Device: curve8300
My Carrier: Rogers

Re: How to access database from my application

shouldn't i use WiFi or HTTP? the database is on a different server, can you provide some code?
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to access database from my application

Since there is no SQL 'Driver' available for Blackberry, you will need to have some processing on the Server end that takes your http connection (regardless of method) and proceses it and returns the data as a response to your http connection - which you then take into your application.

 

There is no simple way sorry.

 

If you do a search on this forum using "SQL Server" you wil find that this question has been asked before and there are a number of useful Threads that discuss this topic.