Best choise for a local application database

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2006
Posts: 1
Reputation: gogic is an unknown quantity at this point 
Solved Threads: 0
gogic gogic is offline Offline
Newbie Poster

Best choise for a local application database

 
0
  #1
Apr 4th, 2006
Am creating small aplication like a phonebook, but i dont know which database to use ? any sugestions? I wont something that is free, easy to implement with c#, and just a local database not some big server staff
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Best choise for a local application database

 
0
  #2
Apr 4th, 2006
For C#, I recommend their newest database creation, SQL Server Express 2005. It's a destop version of SQL Server:

http://msdn.microsoft.com/vstudio/express/sql/
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 263
Reputation: Toulinwoek is an unknown quantity at this point 
Solved Threads: 2
Toulinwoek's Avatar
Toulinwoek Toulinwoek is offline Offline
Posting Whiz in Training

Re: Best choise for a local application database

 
0
  #3
Apr 4th, 2006
I have a question about that. Why is SQL Express a better choice than an Access database? Is it easier, better performing, more flexible or what? Or is it more a matter of personal preference? Also, if one distributes an app storing data in an SQL database, wouldn't the user need to install SQL Express on their machine?
I'm asking because it seems (to me) that using SQL would be easier, but I am much more familiar with Access. I'd like to know which would be the better choice to learn with going forward.
:!: In The Beginning, God; In The End, God. In between, believe whatever you like. :)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Best choise for a local application database

 
0
  #4
Apr 4th, 2006
Mainly personal preference, though I would guess SQL Server is faster than Access.

Also, in terms of overall support, I think you'll find higher quantity and quality support/articles discussion for SQL Server than Access.

Plus, in C#, there are specific namespaces for SQL Server, whereas with Access, you'd have to go through ODBC.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 233
Reputation: Lord Soth is an unknown quantity at this point 
Solved Threads: 4
Lord Soth's Avatar
Lord Soth Lord Soth is offline Offline
Posting Whiz in Training

Re: Best choise for a local application database

 
0
  #5
Apr 5th, 2006
Hi,

In my opinion either go with MS Access or use a typed binary file of your data structure if you can handle it (for cases where entry count will be less than 1k); because latter will remove your dependence to ADO.Net, Jet Engine and database compaction issues.

Loren Soth
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Best choise for a local application database

 
0
  #6
Apr 5th, 2006
I'm currently using an Access database for a project I'm working on.

My reason for it is that it's pretty easy to embed the connectionString in an app.config file, and change the location of the database. Since it's a local file, it's portable (ie, you can zip up the application, the config file, and the database file) to use on other machines.

I guess a typed binary file would work, but if you're talking about .NET, it just seems easier to me to use an Access database for such a small application. If you were wanting to go with something where people would collaborate on or share the data, I'd move to SQL Server Express.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 8
Reputation: fiska is an unknown quantity at this point 
Solved Threads: 0
fiska's Avatar
fiska fiska is offline Offline
Newbie Poster

Re: Best choise for a local application database

 
0
  #7
Apr 10th, 2006
File from SQL express edition can be portable as well, so you can embedd them into your project, therefore another advantage of SQL express edition over Access is it's storage volume
Access: 2GB
SqlEX: 4 GB

and another advantage most important is that Access won't work as well as SqlEX with relationional tables. Access was not designed for relational table fashion, its morelike where you have more columns per table and less tables, meanwhile SQLEX will work best when you have multiple tables and you join them to get the desired results as well you gain on normalization and volume space, speed, etc,...
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 233
Reputation: Lord Soth is an unknown quantity at this point 
Solved Threads: 4
Lord Soth's Avatar
Lord Soth Lord Soth is offline Offline
Posting Whiz in Training

Re: Best choise for a local application database

 
0
  #8
Apr 11th, 2006
Hi,

You can use SQL quries with Access too as you know. The main problem with SQL Express is the deployment (you need to install it w/ your app) and it isn't free for commercial products. As soon as Microsoft sets SQL Server free I might consider it as an alternative to MS Access (thus also to ADO/Jet Engine) for commercial desktop (where no client/server connectivity is required) projects w/ high data load.

Loren Soth
Best regards,
Loren Soth

Crimson K. Software _________________________________________________________________ Crimson K. Blog
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 263
Reputation: Toulinwoek is an unknown quantity at this point 
Solved Threads: 2
Toulinwoek's Avatar
Toulinwoek Toulinwoek is offline Offline
Posting Whiz in Training

Re: Best choise for a local application database

 
0
  #9
Apr 11th, 2006
SQL Express isn't free for distribution? If not, that pretty much settles it for me, since the other differences between that and Access seem to be mainly a matter of personal preference. Regarding the maximum database size, it is doubtful I'd ever develop a program that required anywhere close to even 2GB, so that factor would never come into play.
:!: In The Beginning, God; In The End, God. In between, believe whatever you like. :)
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Best choise for a local application database

 
0
  #10
Apr 12th, 2006
SQL express is free, or at least it was a month or two ago when I downloaded it. I can't imagine that would have changed. Also sqlexpress supports sub-queries, which I don't believe access does. Also, in my experience, sqlexpress recovers better from errors than access. I have had instances where there was an error and the access connection would not start working again without rebooting.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC