Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I've developed a desktop application(Accountant App). This application is going to import invoices data and do a lot of other things. All data will be stored on remote database (SQL Server). This app needs some 'pre loaded data' to work properly, like a list containing a bunch of cities etc. My question is: Is better to have this data (cities, states, zipcodes) stored in the remote database or is better to use xml, csv files and deploy them with each individual instance of the application? This data will be updated eventually. And this data will be used frequently by the users.
Well you can either use an external file or store them in the database. I think storing it in the database is the better approach since you won't have to distribute another extra file and all of your data will be at one place. Don't forget to seed the data every time you clear the database though.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have simple application design it by C# (windows form application) and the database is Microsoft Access, it work with multi users.
We have Share Drive in our PC ,I put the application and database on the share drive.
How can I protect the application and the database from the users until they do not delete or open it?
MS Access is designed to be slightly better then storing this stuff in Excel Tables, but not so good it will ruin the MS Business with SQL Server. If anything, it is about getting you "hooked on" using Databases.
I think this project plainly went past the scale that Access can support. You need to go to a proper Database Server to go any further - user rights included. SQL Server Express and MySQL should both be avalible and free of charge. And of course there are tons of other Options.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have email application. Currently I store all the emails of all email accounts in SQL Server. I have 60 tables. After every 20 minutes, all emails are stored in XML file. To storing in XML is for offline purpose.
Offline: if there is no database connection, it brings all data from XML and stores in DataSet (60 tables). I use this DataSet to perform all offline operations like read mail or check mail etc.
This mechanism takes so much memory if there are thousands of emails in XML file. I think it takes so much memory because of DataSet. I don't dispose DataSet because all the data are stored in it and it use for operation in offline.
Can anybody suggest me mechanism for above situation?
You can use SQL Server Compact Edition to store mails locally. You'll be able to use the same queries to access data.
This is a client based SQL Server which keeps tables in a file. You don't install a SQL server to the client, you will only reference to the System.Data.SqlServerCe.dll library and will use SqlServerCe specific connection object to access the data.
Microsoft download page is here: https://www.microsoft.com/en-us/download/details.aspx?id=30709
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have requirement to write in .net UI similar to win file explorer for managing very large number of virtual files (thousands). There will be file names, location and some metadata for each. All probably will be getting from some sql database.
I have some concerns with file explorer solution, especially with searching performance. Trying to use now telerik radfileExplorer control, search is implemented there only in current folder because of performance. My worries are when I add recursive search for thousand of files it will last long time.
Do you have any suggestion?
You can use FileTable in SQL Server to store files. File table works on filestream technology and works faster on file search. It has Windows API compatibility for file data stored within an SQL Server database. You can traverse and search files in file table via TSQL statements.
The major advantage of using file table is that data is not stored on database but on file system. You are also allowed to modify data via windows explorer.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have Email application. Currently I store all the data in MySQL database. I want to store data periodically in local file in XML or JSON format. So, when there is no database connection, I can use this local file to open and manage application locally.
I have Class Entity for each table of the database in my application and I retrieve all the data from database to Class object List.
I want to store information of email, contact and calendar in local file.
I want functionality to add/Update/delete emails, contact and calendar in local file.
Can anybody suggest me which option should I use? XML or JSON?
You can serialize your objects to either, so it is your choice / personal preference.
JSON has become the standard for data transfer, through the adoption of AJAX calls, although XML is still widely used.
If space is an issue, JSON uses less space.
If there is no reason to use XML, then JSON would seem like a good way to go.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We have configuration data stored within the tables like casestatustypes with columns such as statusid, name, description. How to store these kind of data in the web application, instead of hitting the database each time for retrieving the statusid.
You use a technique known as caching. Basically, you build an in-memory copy of the data that you use for retrieval purposes. When you start the application, you pull from the database to create this cache. When you do an insert, update, or delete; you do it to both the cache and database.
Its easy enough to implement yourself, and there are several good libraries out there (Microsoft even has one in Enterprise Library http://msdn.microsoft.com/library/cc467894.aspx).
Gotchas:
If the data set is large, you'll want to implement a caching strategy that doesn't hold the entire dataset in memory (libraries are useful for this).
Since its a web-app, you need to make sure the cache isn't going to be re-created for each session.