Whether Using XML Database For Data Storage Is Safe Enough

Mar 4, 2011

Whether using XML database for data storage is safe enough? because I wanted to branch using an XML database and then she sends the data to the center. and then the data is in process at the center and then incorporated into the database server

View 4 Replies


ADVERTISEMENT

Dynamic Data Storage Without Seperate Database Program?

Jun 5, 2010

I'm relatively new to the vb.net framework and object oriented programming. After perusing the threads for a few hours I can't quite find an answer so I'm posting this thread. I'm not necessarily looking for code examples. I just want to know if it's possible and where to look next. Basically I'm trying to build a starter application that will help me learn programming. One of the main things I want to do is to be able to dynamically (at run time) create a set of information (data) that can be manipulated via a set of static (and/or dynamic) functions/calculations. The reason I need it to be dynamic is because even though this program is really just for my own fun and perusal on my own machine (and I want it to be able to run without any outside connections (i.e. databases or servers) the data itself is going to be location (i.e.State of residence or even city) specific. Essentially most of the data will be numerical and can be of the integer type. But I'd like to be able to adjust and create new data sets if desired. From everything I've read and researched I haven't found a way to do this (at least now without an excessive amount of coding that is above my expertise). So I want to know if there is a way to do this that is relatively simple.

View 2 Replies

Buffer/Array - Safe Application That Contains 3 Threads - Data Acquisition And Decoding - Data Graphing - FFT And Filtering

Aug 26, 2009

I am trying to write a thread safe application that contains 3 threads : -

1 - Data acquisition and decoding
2- Data graphing
3 - FFT and filtering

Thread 1 is collecting bytes from the serial port and converting them int integers (so taking two bytes) after is has captured 64 Bytes and converted into 32 integers, it then needs to pass the array to the graphing thread.

The graphing thread then plots the data and waits for more data.

Thread 3 also waits until thread one has collected 2023 integers and takes these and performs some FFT calculations (which take time).

My question is how do i share the arrays between the three threads without deadlocking the program? as the serial thread will be flying around reasonable fast (1000 bytes per second) so it will synclock onto the shared buffers for most of the time.

Originally i was going to use two synchronised queues, so when thread 1 has collected 32 bytes it queues the data into the graph queue, and once it has collected 2023 it queues the data into the FFT queue.

Then thread 2 and 3 can simple dequeue the data.

However using queues has the overhead of casting the data in and out, and as i know the data type i was planning on using two arrays :-

Dim GraphArray() as ushort
Dim FFTArray() as ushort

Then Thread 1 adds data to each thread, and thread 2 and 3 simple wait until the correct amount of data is available before removing the data. my question is there an array type that allows me to remove x amount of data from an array?

Because i cannot do this easily with the ararys defined as above (GraphArray, FFTArray), as i was planning on making them 1mByte and allowing thread 1 to fill them Knowing they should never overflow and then let thread 2 and 3 remove x amout of bytes at a time unless there is a better way of doing it

View 13 Replies

Target My Access Database In A Safe Way?

Aug 15, 2011

How can I point or target my access database in a safe way?

View 3 Replies

How To Create Dynamic Storage Of Data

Jan 26, 2012

I'm a junior VB programmer and looking for some advice on this subject. I'm trying to create a chunk of code that will create dynamic storage for variables for use later by dynamic custom controls.

For example:
An INI file might have an entry in it that looks something this:
....
[var1] <-- this becomes the Storage name
description=My Variable
type=System.Int32 <-- this could be any valid VB type
last_val=456 <-- Other code would save the last value
....

And I want to access the data using a standard "property set" like so after it's created:
var1_reference.value = 55
I've tried using a generic class which works ok as long as I declare the variables at design time from within the design environment. But when I try to create them from the INI file it gets messy.

Here's the simple generic class i've constructed to test this:
Public Class GenericVar(Of T)
'
' Generic Symbol Class for data storage
'
Private VarName As String
Private VarType As Type
[Code] .....

Also, as each object is created (and they could be different types) I store a reference in an array to make it easier to keep track of, but I'm having a hard time getting access to the objects and their properties, and certainly cant seem to assign an event handler to it once its in an arraylist because the design time code doesn't know what "Type" it is in the arraylist of objects.

View 2 Replies

Program Data Storage Location?

Dec 2, 2011

Where should I store my programs user data so no one will have trouble accessing it?

View 2 Replies

Vista (and Windows 7?) Data Storage

Oct 19, 2009

I have and application written that works great on XP. It is VB.Net 2008, using .net 3.5. I install and Access database to the program file directory. In Vista, I get an error that is permissions related as even admins don't have default write permissions to the Program Files directory and access creates a .ldb file when in use. To solve this, I have had the users give themselves permission to the folder.

Is that the best solution? If not, where should data be stored in Vista and in Windows 7? Also, I have an update feature of my software that will download updates to the program files folder. Is this out, too?

View 20 Replies

DB/Reporting - Best Practice For Jagged Data Storage

Jun 10, 2009

say you have a database that you want to store 100 different recipes in. Out of that 100 recipes 20 have 5 ingredients, 30 have 7 ingredients, 30 have 4 ingredients and 20 have 6 ingredients. So what's the best practice for storing an unknown number of items in a database?

Currently what I am doing in these situations is storing them in a single field in a database separated by a comma. Then when I have to retrieve them I split them by the comma into an array. This doesn't seem right to me but I haven't noticed an impact on speed or efficiency, so what would be the best practice to handle this situation?

View 2 Replies

DB/Reporting :: Use DataSet For Local Data Storage?

Mar 22, 2009

I need a simple method for a user to enter as many rows of data as they wish (probably won't exceed 50 in most cases and that's pushing it) and then store that data for retrieving the next time they want to reuse that list. I will also need to read the rows in for manipulating text in a file with those entries.

Would the best method to be to use the DataSet in VB Express 2008 and then use the DataGridView for allowing the display and entry of the data?

View 1 Replies

DB/Reporting :: Searching For More Effective Data Storage For Quick Access?

May 12, 2008

I am quite green to VB .NET and it start occuring to me that I am doing things probably in a very ineffective way.Anyway here is the problem I have datasets, consisting of integers there is set 1 which is of format ID, ID2 - ID here is unique but different ID can refer to same ID2. Before I start reading in the data I have unknown number of these entries (ID and ID2 can be at least as high as 99999999)

Then I have a second data set of format ID2 here is the same as in the set 1 and it can contain several PID entries (all integers). In this set the ID2 is unique and again for one ID2 there can be unknown amount of these PIDs, same PID can occur more than once.

[Code]...

View 17 Replies

Trace Debugging / Application Data Safe To Remove?

Mar 17, 2011

Taking up 3gbC:Documents and SettingsAll UsersApplication DataMicrosoft Visual Studio10.0TraceDebugging.

View 3 Replies

Use Safe File Handles To Access Alternate Data Streams?

Dec 15, 2009

I have written a simple module to access NTFS Alternate Data Streams (ADS), which looks like this:

Imports System.IO
Module Module_ADS ' Alternate Data Streams
Private Const GENERIC_ALL As Int32 = &H10000000

[code]....

View 2 Replies

Data Storage Methods (access/sql Etc) Require The End User To Download Extra Files?

Mar 3, 2012

I'm just getting started with Visual Studio (2005), and my aim is to write a fairly simple application in Visual Basic that will need to store some data to disk.What I really want is to be able to send the application to the end users (xp, vista, win7) and have them just be able to use it without having down download all kinds of extras. For example I'm guessing that if I use an SQL database in my application they will need to download SQl server express or some other sql downloadable?

If so is there a similar downloadable for MS Access?I'm just in the 'seeing how things work' stage at the moment and I don't want to waste time going down the SQL track just to find it won't actually work unless my users all download SQL to their machines (which they won't want to do).

View 4 Replies

"Nominal Storage Allocation" In The Context Of Primitive Data Type Allocation Size?

Jul 30, 2011

Looking at this table describing the data types in VB.One of the columns is labeled "Nominal storage allocation". What does this mean? Why is the word "nominal" here?

View 2 Replies

Insert, Delete, Update The Data Into Database And The Data From Database Will Be Display Using Datagrid?

Sep 17, 2010

I got a system which i want to insert, delete, update the data into my database and the data from database will be display using datagrid. The below is the coding for one of my button, delete.

Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
Try
btnSearchEmpNo.Enabled = False[code].....

Now I wanna set when user click on this button to delete a employee (for example) then the datagrid that i have in my application will not show the data of the deleted employee but in the background, the employee haven't been deleted from database.The employee only will be deleted from database when the user click on SAVE button.I know this application have to use RowState but how?

View 5 Replies

VS 2010 Remove Previous Data Of Database Then Insert New Data To Database From Textfile

Dec 14, 2011

What I want to happen is that the button from my system will remove the previous data from database and then insert new data to database from text file. Im done with inserting new data. The thing is that I dont how to control or where to put the Delete Command from my code.

[Code]...

View 3 Replies

How To Storage Some Information

Apr 8, 2010

I need some input how to storage some information.The information I wish to store is a list (1-300) that contains the following:

-Raw material (string)
-An array of Value (double or long)
-An array of Date (string preferably)

My first approach to this was looking at the structure statement but I couldnt figure how to use the array within the structure statement.

View 2 Replies

IDE :: Not Enough Storage Space Is Available?

Nov 30, 2006

Almost every one hour, when I run the project

View 12 Replies

Storage Fpr SSL Files?

Dec 30, 2010

I am using a MySQL Server on the net and a Windows Forms client program, which connects to this server.

I want to use SSL and have prepared everything, that this can be used. My primary question now is as follows:Where / how to store the files for the SSL certificate as best way? As embedded resource? as external file? As part of the My.Settings environment?

View 3 Replies

Use Memory As Storage Instead Of HDD?

Mar 31, 2012

I have been trying to do this for about a month now (hard to get answer quick because of school), but i need to decrypt a file into memory. I know you have to "write all bytes to memory" but i have two problems with that, 1. I have never touched on that itself and don't know how to write the bytes of an executable to memory, 2. I still wouldn't know how to decrypt it in memory. Right now my code is:

ElseIf entype = "rc4" Then
If File.Exists(thepath & exerandname) Then
Kill(thepath & exerandname)

[code]....

it checks if the file exist then deletes it, then it opens the file and decrypts (_4reversecr.enc) the file(Cutter(1)) with the key (key)?

View 5 Replies

.net - VB In Program Information Storage?

Oct 7, 2011

I'm making an installer that needs to have information stored inside the exe itself.I cannot use my.settings because it is stored outside the application and if it is changed and the exe is moved to another computer it will reset to default.

And I cannot use resources since I cannot add/edit resources after the application is build.

Is there any way I can store and change info even if the application is moved to another location?

View 1 Replies

Add An Array To A Storage Collection?

Feb 15, 2012

I currently have the following bits of

[code]...

I want to add an array to the class `StopwatchStorage` but can't figure out how without some ambiguous warning or error popping up. The Array will contain TimeSpan type elements (essentually an array of Stopwatch.Elapsed values)

How do I declare and add a dynamically sized array to the class. I know that I will have to use the UBound function each time I want to add a new array.

View 3 Replies

Creating Isolated Storage?

Jan 12, 2011

I was reading an article about isolated storage and thought of doing the following.Encrypt files.Add them to Zip.Unzip the file,decrypt the content and copy all the files and folders into an isolated storage and then load a specific file into a web browser and launch lets say an HTML page I got stuck on the Isolated Storage thingy

here is a part of my code

'So far i unzipped the content of the Zip file
'Setup file streams to handle input and output.
fsInput = New System.IO.FileStream(strInputFile, FileMode.Open, _

[code]....

Encrypt files.Add them to Zip.Unzip the file,decrypt the content and copy all the files and folders into an isolated storage and then load a specific file into a web browser and launch lets say an HTML page)

View 1 Replies

Solution For Structured Storage In Wpf?

May 30, 2009

what is the best solution to save data in structured storage?

i need this for a wpf application

View 4 Replies

.net - Parallel.ForEach Local Storage?

Aug 3, 2010

I recently changed a For Each loop to a Parallel.ForEach loop. I'm concerned about an object being declared outside the loop but assigned while iterating in the loop. Here is the simplified code.

Dim results As ModelResults
Dim noResultsModel As New List(Of ModelResults)
Dim lock As New Object
Parallel.ForEach(_modelEngines,
Sub(model)

[Code]...

Is there a potential race condition with the results object? Would anything be different if I moved the declaration of results into the for loop?

View 1 Replies

Accessing MP3 Player / USB Storage Device?

May 14, 2009

I'm trying to access a USB Storage device, however the device although appearing in the commputer / Drives section, is not allocated a Drive letter, thus when I itterate through the attached drives link text it does not appear, I've taken the "Location" from a file on the drive (properties) and it comes up as COMPUTER/Q1/Datacasts but this doesn't work when I pass it to the FileInfo Object (network drive cannot be found) And I'm at a bit of a loss at which way to procced

View 1 Replies

Add A Document Storage Module To AR Software

Jul 7, 2009

I am attempting to add a document storage module to our AR software. I will be prompting the user to attach a doc/image to thier account. I will then put a copy of this file into our folder so that we can reference it without having to rely on them keeping the file in its original place. This system is not using a database but instead its using multiple flat files.

I am looking for guidance on how to handle these files once they have attached them to our system. How should I store these attached files? I was thinking I could copy the file over to a sub directory then renaming it to a auto-generated number so that we do not have duplicates. The bad thing about this, is the contents of the folder can get rather large.

View 2 Replies

C# - Access Images From External Storage In ASP.NET?

Jan 21, 2010

I have an ASP.NET site in a web server and the images are stored in NAS (some kind of lacie external storage), I tried UNC and other things but no success.how can I access images from external storage in ASP.NET

Update: The images are reachable from the server but when I try to access in ASP.NET throws me error.

View 2 Replies

Contents Of Mass Storage Device?

Aug 19, 2010

I have a listbox (ListBox5) and what i want to happen is when, and only when, a USB mass storage device is inserted a list of the files will appear on the listbox - and then when your press the button marked "Remove File" it will delete the selected file off the USB

View 5 Replies

Deployment :: .NET App Updates And Isolated Storage?

Jul 2, 2009

The Windows Application we are coding uses an XML to store connection settings etc. The application also needs to update automatically online. The problem is that the config file is replaced when the application is updated and the user has to set up the application again (definetly not ideal!).I placed the XML file into isolated storage, no problems doing that. But still when the application is updated the isolated files get replaced/removed and the user has to reset their settings..

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved