CatWithGlasses
CatWithGlasses

Reputation: 1553

Suggestion on C# Express Local db without using services

I'm new in C# I have some experience with JAVA. In java I could use Derby or sqlite for local database without the need of installing additional services on the client computer. Is there a way to do this in c#? Note that I use VS2012 Express.

Upvotes: 0

Views: 201

Answers (2)

Hossein Narimani Rad
Hossein Narimani Rad

Reputation: 32481

Yes. you can use local databases (*.sdf files). So you need this dll.

System.Data.SqlServerCe.dll

For more information you can see this and this

Upvotes: 1

Faaiz Khan
Faaiz Khan

Reputation: 332

You can use SQL compact database, all you have to do is add a new item in your project and set the item to be a database file. It will create a default SQL compact DB for you with everything preset.

P.S SQL compact should be installed with your VS2012

Upvotes: 1

Related Questions