5 Replies - 2369 Views - Last Post: 19 March 2010 - 07:46 PM Rate Topic: -----

#1 k0b13r  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 15
  • View blog
  • Posts: 243
  • Joined: 18-July 06

Desktop C# Application & SQL Server

Posted 17 March 2010 - 03:32 PM

Hi! I'm not sure if it's more C# or Databases related question, someone move my post if I missed the forum ;)

I would like to ask if it is possible to "include" SQL Server (maybe some redistributable package or something?) to my desktop .NET (exactly C#) application? This app needs to store some data (added daily) and it's not possible to install "full" SQL Server on machine where it will be used (I mean, it's possible but I'd rather not install it there ;) Is this possible in any way or I just have to use some database server in the Web? Thanks for replies!

Is This A Good Question/Topic? 0
  • +

Replies To: Desktop C# Application & SQL Server

#2 MentalFloss  Icon User is offline

  • Not really an expert anymore...
  • member icon

Reputation: 433
  • View blog
  • Posts: 1,157
  • Joined: 02-September 09

Re: Desktop C# Application & SQL Server

Posted 17 March 2010 - 07:45 PM

You can add a local database to your application via Add New. It's called "Local Database" and it should be rather noticeable.

Now, the database is a bit different from an installed version. It's the sql compact edition. You'll want to research the pros and cons of using it because "daily updates" might be stretching its usefulness.
Was This Post Helpful? 1
  • +
  • -

#3 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1511
  • View blog
  • Posts: 5,916
  • Joined: 21-March 08

Re: Desktop C# Application & SQL Server

Posted 17 March 2010 - 08:02 PM

View PostMentalFloss, on 17 March 2010 - 09:45 PM, said:

You can add a local database to your application via Add New. It's called "Local Database" and it should be rather noticeable.

Now, the database is a bit different from an installed version. It's the sql compact edition. You'll want to research the pros and cons of using it because "daily updates" might be stretching its usefulness.


There is no con to writing data to a SQL Compact database on a daily basis. Mainly because thats the database type that Windows Mobile uses. So adding data all day everyday would cause no other issues that a normal database would have, except for size issues.

This post has been edited by eclipsed4utoo: 17 March 2010 - 08:03 PM

Was This Post Helpful? 1
  • +
  • -

#4 Guest_Khaled*


Reputation:

Re: Desktop C# Application & SQL Server

Posted 19 March 2010 - 02:41 AM

ithink you can include .NET and sqlServer to your setup check the publish settings
Was This Post Helpful? 1

#5 EtherealMonkey  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 33
  • Joined: 17-March 10

Re: Desktop C# Application & SQL Server

Posted 19 March 2010 - 05:07 AM

Also, look at System.Data.SQLite @ http://sqlite.phxsoftware.com

Note:

Some people HATE SQLite with a passion (for personal reasons or reasons of dogma it seems).

Others LOVE it.

I will let you decide.

(I love it frequently and find few reasons to fault it in a standalone application).

HTH
Was This Post Helpful? 1
  • +
  • -

#6 k0b13r  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 15
  • View blog
  • Posts: 243
  • Joined: 18-July 06

Re: Desktop C# Application & SQL Server

Posted 19 March 2010 - 07:46 PM

Thanks a lot for your answers! :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1