Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 13th, 2012, 11:47 AM
Authorized User
Points: 76, Level: 1
Points: 76, Level: 1 Points: 76, Level: 1 Points: 76, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 35-36

For Lesson 35-36, we work with forms and databases.

How do I get the program to save this information to a specified location??

Also, if I don't specify a location or not make a function for it, do the data just stay in the temporary memory??

Thanks.
  #2 (permalink)  
Old September 13th, 2012, 01:45 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

The database is separate from the program. Depending on the kind of database you are using, it may be in a file (as in an Access database or Excel workbook) or in some sort of logical database server (as in SQL Server, SQL Server Express, or MySQL). That's where the data is stored. You need to use some database product to create the database before you can use it with your program.

For example, suppose a program connects to a SQL Server database and adds some records. Later another program can connect to the same SQL Server database and find the data there.

If a program is using DataSets to store and manipulate information, it must use two methods to load and save the data: Fill and Update. Fill copies data from the database into the DataSet. Update copies any changes back into the database.

A fairly common mistake is to use Fill to load the data but then forget to call Update to save it. You make changes to the data and close the program but the changes are never saved.

I hope that helps. Let me know if that didn't clear things up.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lesson 35 - Scripts aren't Working on my server ZanderFly BOOK: JavaScript 24-Hour Trainer 4 March 15th, 2012 05:32 PM
Problem with Lesson 36, Help needed alawode BOOK: Knight's Microsoft Business Intelligence 24-Hour Trainer 0 February 16th, 2012 10:37 PM
Lesson 35 jlbrown BOOK: Microsoft Access 2010 24-Hour Trainer 4 February 4th, 2012 08:13 PM
Lesson 36 Tryit Mark P. BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 4 October 11th, 2011 02:49 PM
Page 35 Errata LongJohnSilver BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 2 January 9th, 2009 09:26 AM



All times are GMT -4. The time now is 09:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.