Monday, October 18, 2010

Blog Task: Warning

Using the NullReferenceExceptionDemo project:

    1. What warning does the Visual Studio IDE provide with regards to using variables before they have been assigned a value? What does the warning look like? What does it say?
    2. Comment out the incorrect code and uncomment the correct code. Substitute the string parameter “Rach” with your own name.
    3. Post a screen shot of the resulting message box.

Connection String to a Database String

Applications and Databases

We keep them separate

1 Connection string -Address of the supermarket

DB Drivers
Path to DB

2 Connection Object - Car/Road
Using the connection string

3 Command Object-Shopping List
SQL statement to be executed
Using the connection object

4 Data Adapter- The Shopper
Uses the connection object
Retrieves Items

5 Data set- The Pantry
Select- No Mod
Insert- creates a new record
Update- Edit
Delete

4 and 5 only used during the SELECT process

Sunday, October 10, 2010