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. General Programming
  3. C#
  4. Database-style replacement

Database-style replacement

Scheduled Pinned Locked Moved C#
csharpdatabase
8 Posts 6 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.
  • A Offline
    A Offline
    Alex Grose
    wrote on last edited by
    #1

    Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.

    H P G G 4 Replies Last reply
    0
    • A Alex Grose

      Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.

      H Offline
      H Offline
      Hossein Afyuoni
      wrote on last edited by
      #2

      u can use LINQ Method, in vs2008 & C#3.0...:suss:

      1 Reply Last reply
      0
      • A Alex Grose

        Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        You might want to look at SQL Server CE - which is a low footprint database that runs as a DLL in your application process space, i.e. no separate database to install.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles | MoXAML PowerToys

        A 1 Reply Last reply
        0
        • P Pete OHanlon

          You might want to look at SQL Server CE - which is a low footprint database that runs as a DLL in your application process space, i.e. no separate database to install.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles | MoXAML PowerToys

          A Offline
          A Offline
          Alex Grose
          wrote on last edited by
          #4

          Tried that. Asked below (see 'Connecting to a c# local datbase') Didn't work too well (couldn't connect to it properly)

          M 1 Reply Last reply
          0
          • A Alex Grose

            Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            You can use the WriteXml and ReadXml methods to save a DataTable as an xml file. That would give you at least the most basic fetures of a database with no installation needed. Perhaps you should consider using an MS Access database? It's file based and the drivers come pre-installed with windows.

            Despite everything, the person most likely to be fooling you next is yourself.

            1 Reply Last reply
            0
            • A Alex Grose

              Tried that. Asked below (see 'Connecting to a c# local datbase') Didn't work too well (couldn't connect to it properly)

              M Offline
              M Offline
              Mark Churchill
              wrote on last edited by
              #6

              Well it does work, and is the solution for your problem. Try googling the msdn for a walkthrough.

              Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
              Alpha release: Entanglar: Transparant multiplayer framework for .Net games.

              1 Reply Last reply
              0
              • A Alex Grose

                Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.

                G Offline
                G Offline
                Giorgi Dalakishvili
                wrote on last edited by
                #7

                Try SQLite. It's free, fast, needs only one dll and has ado.net managed provider. System.Data.SQLite[^]

                Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion

                A 1 Reply Last reply
                0
                • G Giorgi Dalakishvili

                  Try SQLite. It's free, fast, needs only one dll and has ado.net managed provider. System.Data.SQLite[^]

                  Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion

                  A Offline
                  A Offline
                  Alex Grose
                  wrote on last edited by
                  #8

                  Thanks, Tried it before & didn't work but since discovered how to add the library. So I will try it again. :-D

                  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