|
-
Aug 20th, 2008, 03:06 AM
#1
[2005] How to save input?
Hi All,
I have an application with several textboxes.
When the user write some data into these textboxes it has to be saved.
An access database and textfile is no option to save the data.
What sould I use to save, remove, open and change this data?
Thanks in advance,
sparrow1
-
Aug 20th, 2008, 03:17 AM
#2
Re: [2005] How to save input?
why cant you save it to a text file or database? If you dont want to save it anywhere then how on earth can it be saved :S
The only other option I can think of is to save it in the My.Settings class but that would only save it per-user so you wouldnt be able to have more than one PC with your app on and have them both work from the same saved data...
-
Aug 20th, 2008, 05:08 AM
#3
Re: [2005] How to save input?
If need to save data of only several text boxes then you can think of Registry.
-
Aug 21st, 2008, 02:13 AM
#4
Re: [2005] How to save input?
Hi,
I know it's strange that it can't be a Textfile or an access database.
Otherwise I didn't asked this question.
So, The application will be installed on the companyserver and will be used by several companyPC's. (That's the reason not to use Textfiles or accessdatabases)
Is there another way to do it?
Thanks,
Sparrow1
-
Aug 21st, 2008, 02:43 AM
#5
Re: [2005] How to save input?
an SQL database would be ideal for this purpose then. The SQL database would run on a server (you can install SQL Express on the server for free if you dont already have an SQL Server anywhere on your network) and then all the PCs can communicate with this.
-
Aug 21st, 2008, 05:07 AM
#6
Re: [2005] How to save input?
 Originally Posted by sparrow1
Hi,
I know it's strange that it can't be a Textfile or an access database.
Otherwise I didn't asked this question.
So, The application will be installed on the companyserver and will be used by several companyPC's. (That's the reason not to use Textfiles or accessdatabases)
Is there another way to do it?
Thanks,
Sparrow1
Did you considered post # 3?
-
Aug 21st, 2008, 05:16 AM
#7
Re: [2005] How to save input?
Deepak, I dont think saving to the registry would be suitable when more than one machine needs to access the same data... SQL Server was designed specifically for this purpose.
-
Aug 21st, 2008, 05:21 AM
#8
Re: [2005] How to save input?
 Originally Posted by chris128
Deepak, I dont think saving to the registry would be suitable when more than one machine needs to access the same data... SQL Server was designed specifically for this purpose.
If don't want to save anything on the client machine then SQL server is definitely a better choice as everything will be saved on server.
-
Aug 22nd, 2008, 06:17 AM
#9
Re: [2005] How to save input?
Hi Deepak and Chris,
If you says that's the best way to save anything, then I'll go for it.
The only thing is, I've never used a SQL server before can you put me in the right direction with an example or a tutorial.
And I can use it with VB 2005.
Thanks,
Sparrow1
-
Aug 22nd, 2008, 06:24 AM
#10
Re: [2005] How to save input?
http://www.homeandlearn.co.uk/NET/vbNet.html
See the 'VB .NET Thirteen - VB .NET and Databases' section at above link. It will give an idea about that.
-
Aug 22nd, 2008, 07:22 AM
#11
Re: [2005] How to save input?
Hi Deepak,
Thanks for the link, but isn't that for an Accessdatabase!
If not what datasource should I use?
Wkr,
sparrow1
-
Aug 22nd, 2008, 07:24 AM
#12
Addicted Member
Re: [2005] How to save input?
Would a binary file work?
Use open file as binary, fileput, fileget.
VS 2015 Pro
Windows 10 x64 Pro
-
Aug 22nd, 2008, 10:35 AM
#13
Re: [2005] How to save input?
 Originally Posted by sparrow1
Hi Deepak,
Thanks for the link, but isn't that for an Accessdatabase!
If not what datasource should I use?
Wkr,
sparrow1
I've found this set of tutorials helpful: http://msdn.microsoft.com/en-us/library/ms172560.aspx
-
Aug 22nd, 2008, 03:42 PM
#14
Junior Member
Re: [2005] How to save input?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|