Loading...
Pages: [1]   Go Down
Author Topic: need to store data in database.  (Read 755 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


i am trying to work with ethernet shield with sd card.

i need to use the database to store my datas.

Is it possible to  use the database in storing my datas in the sd card.

Please help me with the simple sample programs.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35519
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i need to use the database to store my datas.
What database?

Quote
Is it possible to  use the database in storing my datas in the sd card.
What database? A relational database consists of a lot more than just data storage.

Quote
Please help me with the simple sample programs.
There are simple samples (provided) for reading and writing to SD cards. Creating a database application that uses the SD card as the data repository is possible but not simple.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What database?

i am planning to use SQL for data base.

I am planning to send data from android mobile and it should receive in router to eternet shield and it shold store the data in the exact tables in the data base.

Is the things possible.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35519
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i am planning to use SQL for data base.
SQL stands for Structured Query Language. It is not specific to any particular relational database.

Quote
I am planning to send data from android mobile and it should receive in router to eternet shield and it shold store the data in the exact tables in the data base.

Is the things possible.
Not unless you intend to develop a relational database program for the Arduino. Doing so in 32K of program space with 2K of SRAM will be a real challenge.
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 43
Posts: 2515
"We're a proud service of the Lost Electricity Reclamation Agency"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I like to say that anything is possible, given enough time and money, but an Arduino is probably not going to be capable of running an SQL database. Given that, I don't see a need for an Arduino at all from the rather brief description here. Just have the Android device send the data directly to the database server and cut out the middle-man.
Logged

Get the infamous "One Million Ohms" board at tINDIE.com: http://tinyurl.com/BuyMohms

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
SQL stands for Structured Query Language. It is not specific to any particular relational database.

i am new to relational database. Do you have any sample program for the relational database.

Quote
Not unless you intend to develop a relational database program for the Arduino. Doing so in 32K of program space with 2K of SRAM will be a real challenge.

i luv challenge. You are making me interested in this. But i need help too.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35519
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do you have any sample program for the relational database.
MySQL, Postgre/SQL, SQLServer, etc. are all examples of relational databases.

Quote
i luv challenge. You are making me interested in this. But i need help too.
Including realistic expectations.

You are probably better off figuring out how to use individual flat files as substitutes for each table.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just have the Android device send the data directly to the database server and cut out the middle-man.

I am in a need to store the datas in a external storage device. so i prefer sd card in ethernet shiled with sql or any data base
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 43
Posts: 2515
"We're a proud service of the Lost Electricity Reclamation Agency"
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just have the Android device send the data directly to the database server and cut out the middle-man.

I am in a need to store the datas in a external storage device. so i prefer sd card in ethernet shiled with sql or any data base

Isn't a database server an external storage device? If you want to sneaker-net the data around, then download it from the database to a flash drive.
Logged

Get the infamous "One Million Ohms" board at tINDIE.com: http://tinyurl.com/BuyMohms

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

then download it from the database to a flash drive.

can you send me a simple web sever sketch in ethernet with sd card storage in it.
Logged

Offline Offline
Sr. Member
****
Karma: 6
Posts: 462
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think that is impossible process sql instruction directly from Arduino,without database server(or a pc)..for example sqlite library,which is a very small implementation of sql ,requires more than 100kb..
In my opinion,u have two option:
- Use a flat file(like .dat,.txt,.csv) on the sd card
- use a database server installed in some pc(or also in a router with openwrt,if is possible),the Arduino could build the SQL string and pass them to the pc..but it required ethernet shield(or other type of conection)
« Last Edit: July 03, 2012, 01:21:46 pm by m_ri » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 46
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In my opinion,u have two option:
- Use a flat file(like .dat,.txt,.csv) on the sd card
- use a database server installed in some pc(or also in a router with openwrt,if is possible),the Arduino could build the SQL string and pass them to the pc..but it required ethernet shield(or other type of conection)

Please send me a sample code which accesses the data from the client side in this ethernet and router connection.
Logged

Pages: [1]   Go Up
Print
 
Jump to: