CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: databases

  1. #1
    Join Date
    Jul 2010
    Posts
    7

    databases

    Hi people! first of all sorry for my poor english, I will try to explain my situation. I am doing an application with c#,my first! I need a database but I don't want that the client have to install sql server or mysql or postgres...etc. So I was thinking to work with sdf files (the sql server compact) but I don't know if is the best option to do what I want. Tell me something please. Thanks people!

    George

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: databases

    In my opinion, that's the best option. I am sure there are other embedded databases that you could use, but I always use SQL CE for something like this.
    ===============================
    My Blog

  3. #3
    Join Date
    Jul 2010
    Posts
    7

    Re: databases

    thanks for the fast answer. Another thing, now I have the database in an .mdf file, I want to know if I can export this database to de .sdf file. Or to export .mdf to .sql . I don't find nothing in the net. Thanks again!

    Jordi

  4. #4
    Join Date
    Oct 2007
    Location
    Fredericksburg, VA
    Posts
    41

    Re: databases

    Personally, my preference is to use SQLite, its fast, low memory footprint, low file size, and no installs needed on client side. It's well known, and well documented.

    The .NET wrapper I use for it is here:
    http://sqlite.phxsoftware.com/

    As far as transferring your objects...there's many automated tools that'll do it for you.

    SQLite can also import tab-delimited, or XML formatted data using its .import command.
    So if you open the mdf file you have and export it as a tab-delimited, or XML formatted data file, you can import it into the new SQLite database.

    Brian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured