Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Portable DB Suggestions?

Portable DB Suggestions?

Scheduled Pinned Locked Moved The Lounge
csharpdatabasequestion
46 Posts 33 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Steve McLenithan

    SQLite hands down. There's a complete .net connector for it.
    // Steve McLenithan

    L Offline
    L Offline
    Luis Alonso Ramos
    wrote on last edited by
    #24

    I didn't know about it, and it looks great!! I'll keep it handy for my next projects. What .NET provider do you use? I found two: ADO.NET Provider for SQLite[^] System.Data.SQLite[^] Apparently the second one looks better, but I have yet to try them. [EDIT: It seems both are the same. When I click the files link for the second one, I go to Sourceforge] Regards,

    Luis Alonso Ramos Intelectix Chihuahua, Mexico My Blog!

    modified on Sunday, October 19, 2008 2:37 AM

    C 1 Reply Last reply
    0
    • S Shog9 0

      I took it as "portable" in the sense of "can be moved to another machine / given to another user without a lot of work". Something like XML or SQLite fit those needs pretty well; an Access database or some flavors of SQL Server might work, provided you're willing to impose the cost of installing the supporting libraries. A server-based database OTOH, would be rather painful, as you'd need to configure the connection in addition to installing the server binaries.

      ----

      You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

      H Offline
      H Offline
      Harvey Saayman
      wrote on last edited by
      #25

      You got it Shog, i intend for this app to be on my flash disk or external HDD

      Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

      1 Reply Last reply
      0
      • H Harvey Saayman

        Hey guys I'm working on a little personal project, a code snippet manager. I want it to be portable but I have no idea which portable database to use. I'm writing it in C# under DotNet 3.5 Any suggestions?

        Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

        Z Offline
        Z Offline
        Zoltan Balazs
        wrote on last edited by
        #26

        Embedded Firebird [^]. There are a couple of articles about it on CP, like this one [^]

        Work @ Network integrated solutions | Flickr | A practical use of the MVC pattern

        1 Reply Last reply
        0
        • S Shog9 0

          +1. The combination of speed and lack of dependencies is a huge win.

          ----

          You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #27

          Shog9 wrote:

          lack of dependencies

          To get it running in C++, all you have to do is to download two (maybe three depending on how much you'd like to extend it) files, and add them to your project. Talk about It Just Works!

          1 Reply Last reply
          0
          • H Harvey Saayman

            Hey guys I'm working on a little personal project, a code snippet manager. I want it to be portable but I have no idea which portable database to use. I'm writing it in C# under DotNet 3.5 Any suggestions?

            Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #28

            http://www.vistadb.com

            A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

            1 Reply Last reply
            0
            • R Rocky Moore

              Is there a decent wrapper for multithreaded C#/.NET 3.5 apps for SQLite? I did a search and saw a number of different projects around the net, but is there one you have used that is stable and no headaches?

              Rocky <>< Recent Blog Post: Texas Deputy Sheriff vs New York Lawyer! Thinking about Silverlight? www.SilverlightCity.com

              P Offline
              P Offline
              Perspx
              wrote on last edited by
              #29

              Not having used SQLite with C#, unfortunately I can't. I've used it with C++ though and it's pretty speedy :) Regards, --Perspx

              "I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
              "Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds

              1 Reply Last reply
              0
              • N Nemanja Trifunovic

                Shog9 wrote:

                "portable" in the sense of "can be moved to another machine / given to another user without a lot of work"

                That would be a very strange use of the term "portable". It usually means able to port to another compler/OS/hardware.

                Programming Blog utf8-cpp

                S Offline
                S Offline
                Stuart Dootson
                wrote on last edited by
                #30

                Nemanja Trifunovic wrote:

                That would be a very strange use of the term "portable". It usually means able to port to another compler/OS/hardware.

                Not necessarily[^]

                1 Reply Last reply
                0
                • L Lost User

                  I'm guessing it stands for Microsoft. Cheers, Drew.

                  T Offline
                  T Offline
                  Todd Smith
                  wrote on last edited by
                  #31

                  u$ dataset reader what types of dataset readers are there?

                  Todd Smith

                  1 Reply Last reply
                  0
                  • L l a u r e n

                    what does "u$" mean?

                    "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

                    M Offline
                    M Offline
                    MrPlankton
                    wrote on last edited by
                    #32

                    u=micro $oft

                    MrPlankton (bad guy)"Fear is a hammer, and when the people are beaten finally to the conviction that their existence hangs by a frayed thread, they will be led where they need to go." (good guy)"Which is where?" (bad guy)"To a responsible future in a properly managed world." Dean Koontz, The Good Guy

                    1 Reply Last reply
                    0
                    • L l a u r e n

                      oooops sorry my bad... i looked around but couldnt find that :)

                      "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

                      S Offline
                      S Offline
                      Stuart Roberts
                      wrote on last edited by
                      #33

                      I have used the free version of this for a project of my own and it is good, plus their support is pretty speedy. There is a provider that **should** be a drop-in replacement for the SQL Server provider, and they are constantly working on ensuring that their flavour of SQL matches SQL Server, to make upgrade / crossgrade easier.

                      Stuart R

                      1 Reply Last reply
                      0
                      • H Harvey Saayman

                        Hey guys I'm working on a little personal project, a code snippet manager. I want it to be portable but I have no idea which portable database to use. I'm writing it in C# under DotNet 3.5 Any suggestions?

                        Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

                        S Offline
                        S Offline
                        si618
                        wrote on last edited by
                        #34

                        Sounds like a job for db4o.

                        C 1 Reply Last reply
                        0
                        • H Harvey Saayman

                          Hey guys I'm working on a little personal project, a code snippet manager. I want it to be portable but I have no idea which portable database to use. I'm writing it in C# under DotNet 3.5 Any suggestions?

                          Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

                          C Offline
                          C Offline
                          cwp42
                          wrote on last edited by
                          #35

                          Take Access - one file, fast and handy Read http://www.codeproject.com/KB/database/DatabaseAcessWithAdoNet1.aspx[^]for details

                          cwp42

                          R 1 Reply Last reply
                          0
                          • H Harvey Saayman

                            Hey guys I'm working on a little personal project, a code snippet manager. I want it to be portable but I have no idea which portable database to use. I'm writing it in C# under DotNet 3.5 Any suggestions?

                            Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

                            R Offline
                            R Offline
                            Rachel Mant
                            wrote on last edited by
                            #36

                            If you're so concerned with having the application portable, write your own database format for the application, that way you can keep the dependencies to a minimum and have full control as to how the data is stored. (just my 2cents)

                            The worst thing about the darkness is the light at the end - DX-MON

                            1 Reply Last reply
                            0
                            • L Luis Alonso Ramos

                              I didn't know about it, and it looks great!! I'll keep it handy for my next projects. What .NET provider do you use? I found two: ADO.NET Provider for SQLite[^] System.Data.SQLite[^] Apparently the second one looks better, but I have yet to try them. [EDIT: It seems both are the same. When I click the files link for the second one, I go to Sourceforge] Regards,

                              Luis Alonso Ramos Intelectix Chihuahua, Mexico My Blog!

                              modified on Sunday, October 19, 2008 2:37 AM

                              C Offline
                              C Offline
                              CarlG
                              wrote on last edited by
                              #37

                              Yes, I too can recommend SQLite. It is simply Great! "Small, Fast, Reliable - choose any 3". :) / Carl

                              1 Reply Last reply
                              0
                              • C cwp42

                                Take Access - one file, fast and handy Read http://www.codeproject.com/KB/database/DatabaseAcessWithAdoNet1.aspx[^]for details

                                cwp42

                                R Offline
                                R Offline
                                Rachel Mant
                                wrote on last edited by
                                #38

                                Access isn't portable though, it's windows only and this guy wants his software to be able to run on all platforms.

                                The worst thing about the darkness is the light at the end - DX-MON

                                1 Reply Last reply
                                0
                                • H Harvey Saayman

                                  Hey guys I'm working on a little personal project, a code snippet manager. I want it to be portable but I have no idea which portable database to use. I'm writing it in C# under DotNet 3.5 Any suggestions?

                                  Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer) 1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

                                  K Offline
                                  K Offline
                                  KCorax2
                                  wrote on last edited by
                                  #39

                                  SQLite is horrible with respect to features. There aren't even foreign keys on this thing, transactions and all. If you go with something that small, you could as well do binary serialization to file and then use Linq to object + some data structures to query things. I'd go for SQL Compact for which you can even do Linq to SQL using sqlmetal. It works very well, and it's deployable easily on Windows CE and clickonce applications. If performance doesn't cut it (because both SQLite and SQLCE are very very slow) I'd go with Firebird and hand coded queries. Firebird is actually fantastic when you look at the feature list. A very complete DBMS.

                                  1 Reply Last reply
                                  0
                                  • S Steve McLenithan

                                    SQLite hands down. There's a complete .net connector for it.
                                    // Steve McLenithan

                                    C Offline
                                    C Offline
                                    chaiguy1337
                                    wrote on last edited by
                                    #40

                                    My impression was that Sqlite was very limited, especially with regards to concurrency. I think it has to lock the entire table at a time rather than just a row, if I recall. If you're not doing anything with concurrent connections it's probably not a big deal, I guess. Also, I've heard[^] good things about VistaDB. It's 100% managed code, no wrappers. In fact they've even got preliminary tests working under Silverlight and it already supports Mono.

                                    “It behooves every man to remember that the work of the critic, is of altogether secondary importance, and that, in the end, progress is accomplished by the man who does things.” –Theodore Roosevelt {o,o}.oO( Check out my blog! ) |)””’)          http://pihole.org/ -”-”-

                                    1 Reply Last reply
                                    0
                                    • S Steve McLenithan

                                      SQLite hands down. There's a complete .net connector for it.
                                      // Steve McLenithan

                                      E Offline
                                      E Offline
                                      Ed K
                                      wrote on last edited by
                                      #41

                                      You can also use it with Castle.ActiveRecord which makes it even sweeter!

                                      ed ~"Watch your thoughts; they become your words. Watch your words they become your actions. Watch your actions; they become your habits. Watch your habits; they become your character. Watch your character; it becomes your destiny." -Frank Outlaw.

                                      1 Reply Last reply
                                      0
                                      • S Steve McLenithan

                                        SQLite hands down. There's a complete .net connector for it.
                                        // Steve McLenithan

                                        J Offline
                                        J Offline
                                        Jawz X
                                        wrote on last edited by
                                        #42

                                        I agree. I recently used it for a project and it is great. They are even include LINQ support in the framework for the .NET lib. I'm not sure where they are at with that yet, but SQLite is the way to go. Regards, Frank

                                        1 Reply Last reply
                                        0
                                        • S si618

                                          Sounds like a job for db4o.

                                          C Offline
                                          C Offline
                                          codebozo
                                          wrote on last edited by
                                          #43

                                          I concur - db4o would be an excellent choice. It is a true OODB, it has a LINQ provider and it's free as long as the project is truly a "personal project".

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups