Use a different database, like SQLite. SQL Server must be on the client computer, or the client computer must be able to connect to the SQL server remotely, it doesn't run without the back-end installed on something that it can talk to.
I think you are not talking about web application. In web application DB will setup in SQL server. For a desktop application sql server is not a recommended DB. You have setup SQL server in client machine also for desktop app
For a desktop application sql server is not a recommended DB.
Yes, it is. As soon as multiple users need access to the data, we use a real database-server. A local database-file (SQLite, MSAccess) is only recommended if the data remains local and doesn't need to be shared.
manu v nath wrote:
You have setup SQL server in client machine also for desktop app
No, one has to install Sql Server. The client only needs access to the server-application. That might be a server that's shared among multiple clients as well as a local server that's only used locally.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
For the installation of a C# desktop 2010 application, I am using the traditional setup and deployment template.
As part of this template, I want to make certain that a folder is created in a directory path that looks like
Thus can you tell me how to have the setup and deployment project create the directory path for me, if the directory path does not exist?
I'm not sure about VS2010 as I am still using VS2008, however in the setup project, open the primary output file and click on the 'File System on Target Machine'. There you can add a 'Custom Folder' through the right-click menu. Name the new folder whatever you want, and then click on properties for the new folder and set the default location to the directory path you want to use.
Having said that, if this is a folder that your application is going to use during runtime, I would highly recommend that your application check for the existence of the folder and create it if needed before writing the "log files" to it (see the System.IO.Directory class). For instance, will your application crash if after it is installed the user then deletes the "log files" folder?
Also, keep in mind that not all users may have permissions to create folders on the C:\ drive. I've run into that issue with Windows7 several times and the permissions we use. You may need to come up with a work-around or use a user's folder instead.
Never underestimate the creativity of the end-user.
a software I made provides the user with a PropertyGrid[^] to change certain values. Some of them are enum-based.
Customer doesn't like to be forced to click twice: first to open the UITypeEditor[^], second to choose the value.
Customer would rather want to have possible values constantly displayed as RadioButton[^]s. (See this illustration[^].)
Is PropertyGrid that customizable to draw a property as something other than $PropertyName and $PropertyValue as one-line-texts?
Is there some OwnerDraw possibility I didn't recognize?
Is there a third-party control that supports that (this[^] looks nice but User still has to pull the editor down)?
I have a requirement where I need to lock a object to get data from service. If service takes more time to response due to some reason, after 2 mins of timeout period it gets timed out and then lock gets released. Till that time all the other requests has to wait. In this way, During this abnormal service behavior, all the request has to be in waiting stage. First request will take 2 mins to release the lock and second one would then take 2 more mins (total 4 mins idle time) and third will take another 2 mins and so on. After some time, due to this, application will be hanged.
Now I want a technique where first request will acquire lock and get the response. All the other request should be waiting for this and once first request release the lock, this response should be assigned to all other pending request (as the output response will be same) and make them all released at the same time.So ultimately, all request will get a response in two mins and only one service hit will happen.
Do we have any technique in C# to achieve this?Anybody can help me to fix this?
Now I want a technique where first request will acquire lock and get the
response. All the other request should be waiting for this and once first
request release the lock, this response should be assigned to all other pending
request (as the output response will be same) and make them all released at the
same time.So ultimately, all request will get a response in two mins and only
one service hit will happen.
And then what happens in the following scenario?
- First request times out.
- Second request succeeds.
We don't worry about whether it succeed or failed as the data we are pulling is not affect the mainstream of the application. Application can still be running. Only thing is it should not be waited long time to get response. Thanks!
a) A Lotus Notes database .NSF file stores Lotus Notes information. That information consists of user data, metadata and also design information. There are many different types of Lotus Notes databases, the most common being mailbox databases used to store Lotus Notes mail, usually on a Domino server, or address book databases which are usually stored on a users PC and contain multiple contact records.
b) I am still searching
Last Visit: 31-Dec-99 18:00 Last Update: 21-Oct-21 10:04