User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 401,641 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,807 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 575 | Replies: 5
Reply
Join Date: Apr 2007
Posts: 15
Reputation: Sebouh is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Sebouh Sebouh is offline Offline
Newbie Poster

Adding a database to my rogram.

  #1  
Dec 26th, 2007
Hi guys.

I have a program which needs to store some user profile data. I want to use a database to do this, but i've never worked with databases. I was wondering if anyone can help me with it.

My program is written in the java programming language, and i have installed the MS SQL engine. I created a database and was able to connect to it, and add records and stuff. But, i don't want my program to connect to a server to do that. I want the database file to be stored in my application's local folder, so i can directly manipulate the data without connecting to a server. This way, i can run the application on any computer without logging onto any server account.

So my question is, how can i get this done?

Thank you.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: Egypt
Posts: 760
Reputation: RamyMahrous is on a distinguished road 
Rep Power: 4
Solved Threads: 58
Featured Poster
RamyMahrous's Avatar
RamyMahrous RamyMahrous is offline Offline
Master Poster

Re: Adding a database to my rogram.

  #2  
Dec 26th, 2007
So, you need to work with binary files not database!!!
B.Sc Computer Science, Helwan University
Microsoft Student Partner
Personal blog http://ramymahrous.blogspot.com/
Arabic technical blog http://fci-h-ar.blogspot.com/
English technical blog http://fci-h.blogspot.com/
Reply With Quote  
Join Date: Apr 2007
Posts: 15
Reputation: Sebouh is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Sebouh Sebouh is offline Offline
Newbie Poster

Re: Adding a database to my rogram.

  #3  
Dec 26th, 2007
I don't now what you mean.

I'm currently looking into hsql. It's a small DBMS which can be added to the application...
Reply With Quote  
Join Date: Aug 2007
Location: Adelaide, South Australia
Posts: 355
Reputation: darkagn will become famous soon enough darkagn will become famous soon enough 
Rep Power: 3
Solved Threads: 42
darkagn's Avatar
darkagn darkagn is offline Offline
Posting Whiz

Re: Adding a database to my rogram.

  #4  
Dec 26th, 2007
Hi Sebouh,

I'm not 100% sure how to do what you want, but Java does have quite a few sql libraries in its API known as the JDBC. If you post your question in the Java forum, someone with more knowledge than I can claim might be able to help you further.

Cheers,
darkagn
Reply With Quote  
Join Date: Apr 2007
Posts: 15
Reputation: Sebouh is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Sebouh Sebouh is offline Offline
Newbie Poster

Re: Adding a database to my rogram.

  #5  
Dec 27th, 2007
Thanks for the reply darkagn. I'll probably do that. But I'm on a tight schedule, so i'm thinking of ditching the database idea and just work with txt files, cause it's gonna take time to find answers, and learn how to implement everything...

Thanks again.
Reply With Quote  
Join Date: Oct 2005
Location: Manchester, UK
Posts: 481
Reputation: pty is on a distinguished road 
Rep Power: 3
Solved Threads: 31
pty's Avatar
pty pty is offline Offline
Posting Pro in Training

Re: Adding a database to my rogram.

  #6  
Dec 29th, 2007
sqlite is exactly what you're after.

"...SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file..."
Note to self... pocket cup
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 6:18 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC