Click here to Skip to main content
13,258,269 members (46,132 online)
Rate this:
Please Sign up or sign in to vote.
Hi guys,
Can anyone tell me how can i run a database based application on a computer without having a proper database on it.
I heard from someone that it can be possible but you have to use different queries at C# development like while adding parameters to query we have to use
cmd.parameters.add(new SqlParameter("@xyz",textBox1.text));

Please tell me the whole procedure for this.
Posted 1-Dec-12 1:22am
CodeNinja-C# 1-Dec-12 6:30am
How could it possible!!!!

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You don't need a "proper" database system such as Sql Server or MySql installed on your computer, you can use an instance installed elsewhere on teh local network, or in extreme cases on the internet or cloud.
However, none of this would make any difference to the way you use queries - it is only if you are using an early version of .NET that some of the more friendly query parameter methods are unavailable.

However, what I suspect you are talking about is using a database (or database like) file locally to you computer for a single user. In that case, I would recommend that you look at SqlCE or SqLite - both of which require minimal extra installation on a client PC, allthough they would require installation on the development PC.

If this is not what you are trying to do, then please try to explain a little more clearly, and we will try to help!
ridoy 1-Dec-12 9:33am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 1 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100