944,111 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 20647
  • C# RSS
You are currently viewing page 1 of this multi-page discussion thread
Apr 4th, 2006
0

Best choise for a local application database

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gogic is offline Offline
1 posts
since Apr 2006
Apr 4th, 2006
0

Re: Best choise for a local application database

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/
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Apr 4th, 2006
0

Re: Best choise for a local application database

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.
Reputation Points: 10
Solved Threads: 2
Posting Whiz in Training
Toulinwoek is offline Offline
274 posts
since Mar 2005
Apr 4th, 2006
0

Re: Best choise for a local application database

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Apr 5th, 2006
0

Re: Best choise for a local application database

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
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006
Apr 5th, 2006
0

Re: Best choise for a local application database

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.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Apr 10th, 2006
0

Re: Best choise for a local application database

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,...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fiska is offline Offline
8 posts
since Apr 2006
Apr 11th, 2006
0

Re: Best choise for a local application database

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
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006
Apr 11th, 2006
0

Re: Best choise for a local application database

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.
Reputation Points: 10
Solved Threads: 2
Posting Whiz in Training
Toulinwoek is offline Offline
274 posts
since Mar 2005
Apr 12th, 2006
0

Re: Best choise for a local application database

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.
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How To Return List<> From Service through Presentation(WCF to WPF)
Next Thread in C# Forum Timeline: Web Browser Navigate After Login





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC