Access 2010
Access 2003
Seminars
Tips & Tricks
Access Forum
Course Index Insider Circle
 
Tutorials   News   Tips   Forums   Help   Logon   Order  
 
 
 

Microsoft Access SQL Seminar, Part 3
 
Learn how to supercharge your databases using SQL

 

 

This two-hour long video seminar will pick up where Part 2 left off. You will learn more about the SQL programming language. We will focus on manipulating the structure of your Access database - building and modifying tables and queries with SQL commands. The techniques in this seminar are especially useful for the administrator or developer who has to support remote database files. You can now update them (add a table, change a field, etc.) with simple SQL commands.

Learn More...

Click on the video image to the right to learn more about exactly what's covered in this seminar. The video is about 5 minutes long and fully explains everything that's discussed. Then, continue reading the course outline below if you have further questions.

AccessLearningZone.com
  5 minutes
 
Seminars - Access SQL Part 3
Description: Learn the SQL programming language to enhance your Microsoft Access database projects. Part 3 focuses on table and query design.
Versions: I will use Access 2010, however the lessons are valid for all versions of Access back to 2000 with some minor cosmetic differences.
IMPORTANT: Lessons 7 to 10 will NOT work with Access 2000 or earlier.
Pre-Requisites: Access SQL Seminar, Part 2
Running Time: 2 hours, 13 minutes
Cost: $99 - Order multiple courses to receive a discount up to 50% off

 

This seminar has several goals. You will:

1. Learn how to create a modify a Table
2. Discover the different Access SQL Data Types
3. Create Indexes for your tables
4. Connect to external databases using SQL
5. Construct a CONSTRAINT clause
6. Work with table relationships

7. Learn the differences between ANSI-89 and ANSI-92 SQL
8. Set up Referential Integrity between your tables
9. Create stored views and procedures
10. Learn about Access database security via SQL

We will begin by learning how to create a TABLE in SQL. We'll talk about why it's important (and powerful) to be able to do this. We'll create a form to launch our SQL commands via VBA. We'll also see how to delete (drop) a table.

 

Next we will learn about all of the different Access SQL data types such as Text, Memo, Byte, Integer, and so on. You'll see how most of them are the same as regular Access, but a few things have changed.

 

Next we'll learn how to set up Indexes with SQL. You'll create a PRIMARY KEY field, learn how to force unique values (indexed, no duplicates), and how to ignore or disallow NULL values.

 

 

You will learn how to ALTER the structure of your tables once they're built. This is great for modifying existing databases. You can add or delete columns (fields), change some of their properties, and I'll even show you how to connect to external databases.

 

You will learn how to use a CONSTRAINT so that you can name a specific property of your table. This allows you to easily modify it later. You'll also learn how to create a multi-field index spanning two or more fields (and exactly what that is used for).

 

Next we'll learn how to set up relationships between two tables. You'll use a constraint to create a FOREIGN KEY field.

 

 

Next, we'll learn how to switch our Access databases over from ANSI-89 to ANSI-92 to unlock some additional new SQL features. We'll learn about the pros and cons of each version, and what some of the changes are. If you're using Access 2000 or earlier, a few of these lessons won't work for you because Access 2000 only supports ANSI-89. Sorry.

 

You will learn how to create a CHECK constraint (essentially a validation rule) and DEFAULT value for fields. You'll also learn about multi-field validation rules.

 

You will learn about Referential Integrity and how to set up the CASCADE UPDATE and CASCADE DELETE properties.

 

You'll learn how to create a VIEW and PROCEDURE, which are essentially queries in Access... but you'll learn about why they're important to know if you ever start working with and SQL server program.

 

Finally, we'll talk about Access security and SQL. You'll learn how to create users and groups, and how to assign various permissions to them for the objects in your database.

 

Again, this seminar is perfect for anyone who wants to learn how to supercharge their Microsoft Access databases with the added power of custom SQL. It is the third part of a three-part series. Of course, if you have any questions about whether or not this seminar is for you, please contact me.
 

 

Access SQL Seminar 3 Outline

00. Intro (5:02)

01. Creating a Table (14:32)
Importance of SQL table design
CREATE TABLE command
TEXT field
Length of a TEXT field
Multiple Fields
Make a text box to hold our SQL
Bind SQL form to table
DROP TABLE

02. Access SQL Data Types (8:30)
Access to SQL Aliases
TEXT
MEMO
BYTE
SMALLINT
INTEGER
SINGLE
DOUBLE
CURRENCY
COUNTER
DATETIME
YESNO
OLEOBJECT
Hyperlink
Attachment
Lookup
Start COUNTER at different value
Inflate AutoNumber value
SQL view in query designer

03. Indexing (14:32)
NULL
NOT NULL
PRIMARY KEY
UNIQUE
CREATE INDEX
CREATE UNIQUE INDEX
DROP INDEX
WITH DISALLOW NULL
WITH IGNORE NULL
WITH PRIMARY
ASC, DESC

04. Altering Tables (16:12)
ALTER TABLE
ADD COLUMN
ALTER COLUMN
DROP COLUMN
ALTER COLUMN NOT NULL
Altering tables in EXTERNAL databases
Cannot alter LINKED tables
Dim DB as database
OpenDatabase command
DB.Execute
Adding tables to external database
CREATE link to external table

05. Constraints (10:49)
CONSTRAINT
PRIMARY KEY
DROP CONSTRAINT
ADD CONSTRAINT
UNIQUE
Multi Field Index
Index spanning 2 or more fields

06. Relationships (9:37)
Relationships review
CONSTRAINT FOREIGN KEY
Relationships Window

07. ANSI-92 SQL (8:32)
Differences between 89 and 92
Wildcard characters
Switch database from 89 to 92
Broken queries
LIKE to ALIKE

08. CHECK & DEFAULT (11:24)
CHECK
CONSTRAINT CHECK
Multi Field CHECK Constraint
Table-Level Validation Rules
DEFAULT value
ALTER SET DEFAULT
ALTER DROP DEFAULT

09. Referential Integrity (6:16)
ON UPDATE CASCADE
ON DELETE CASCADE

10. VIEWS & PROCEDURES (11:08)
CREATE VIEW
Views vs. Queries
DROP VIEW
Parameters
CREATE PROCEDURE
Action Queries
Append, Delete, Update
EXECUTE procedure
DROP procedure

11. Database Security (11:44)
ALTER DATABASE PASSWORD
Open Exclusive Mode
GRANT, REVOKE
USER, GROUP
CREATE, ALTER, DROP
Privileges
SELECT, DELETE, INSERT, UPDATE
DROP, CREATE
SELECTSCHEMA, SCHEMA
UPDATEOWNER, CONNECT

12. Review (5:01)

 


 

 
 

Student Interaction: Access SQL Seminar Part 3

Richard on 10/21/2011:  This two-hour long seminar on Microsoft Access SQL picks up where PART 2 left off. You will learn how to manipulate the structure of your databases using simple SQL commands. You'll be able to build and modify tables, queries, indexes, relationships, and much more. These techniques are especially powerful for developers who have to support remote, back-end database files. 1. Learn how to create a modify a Table 2. Discover the different Access SQL Data Types 3. Create Indexes for your tables 4. Connect to external databases using SQL 5. Construct a CONSTRAINT clause 6. Work with table relationships 7. Learn the differences between ANSI-89 and ANSI-92 SQL 8. Set up Referential Integrity between your tables 9. Create stored views and procedures 10. Learn about Access database security via SQL Click here for more information on the ACCESS SQL SEMINAR, PART 3.
Mubeezi Micah on 10/21/2011: Looks great! i will be the first one to buy it!

MICAH

Alex Hedley on 10/21/2011: Another fantastic course. :)
Great use of the SQL form.
Brilliant end to the series, loved the bonus tabledef part.

The VB course looks intriguing, hopefully you'll find some time to do it soon!

Reply from Richard Rost:

Wow... that was fast. :) Glad you enjoyed it.

Yes, there's a whole TON of cool stuff you can do with tabledefs (and DAO in general).

Mubeezi Micah on 10/22/2011: Wow! What a seminar! You made manipulating tables look so EASY...even when dealing with a remote database...Thank you Richard and keep it up. I really look forward to the VB and DAO seminars.

MICAH

Mubeezi Micah on 11/26/2011: Dear Richard,

I am failing to find the sample database files for SQL part 3. I tried the link above but didn't find it. Please advice me where i can find them.
Thank you!
MICAH

Reply from Richard Rost:

Part 3 didn't have a sample database. We didn't really build anything complex in class. If you really want it I can try to find mine - but I don't think you'd need it.

 Chris on 3/3/2012: In Altering Tables, you are modifying a remote table (customerT) in the db2 file. My question is: Does the file db2 file need to be running during the modification? (I see you give it the full pathname and filename to the file)

Reply from Richard Rost:

What do you mean by "running?" As long as you have access to the table, and it's not currently LOCKED by another user, then you should be able to modify it.

Chris on 3/5/2012: I was asking does the db that we are remotely modifying (which is an access application file) have to be running during the remote changes or is it enough that we have provided the full path name of the db for your code to access the file to modify it?.

I suppose I should just do it my self and answer my own question.

Reply from Richard Rost:

The BEST way to answer ANY question it to try it yourself. It's always AWESOME to answer your own questions. But... you shouldn't need to have the database open in Access in order to modify it. In fact, it's probably better that you don't.

 

You may want to read these articles from the 599CD News:

 

 
Learn
 
Microsoft Access
Microsoft Excel
Microsoft Word
Microsoft Windows
Microsoft PowerPoint
Adobe Photoshop
Visual Basic
Active Server Pages
Online Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
WalkThru Tutorials
Free Upgrades
Insider Circle
Info
 
Latest News
New Releases
User Forums
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Help
 
Live Chat
Customer Support
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Live Chat
General Contact Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Try Us
 
Free Lessons
Online Theater
Mailing List
Course Indexes:   Microsoft Access   Microsoft Excel   Microsoft Word   Microsoft PowerPoint   Visual Basic (VB)   Photoshop   Active Server Pages (ASP)  
Keyword Search Cloud:   What's This?   courses   microsoft access tutorials   vlookup   access   cartesian   excel   dlookup   vba   attendance   access 2007   sql   windows 7   combo box   pivot table   visual basic   test   iif   word   calendar   query   conditional formatting   pivot tables   photoshop   hlookup   access 101   excel 202   excel 2007   student attendance   update query   my account   word 2007   append query   quickbooks   queries   dsum   reports   powerpoint   if   microsoft access   dmax   mail merge   relationships   ms access   access 2010   vb   dcount   subforms   excel 2003   handbooks   html   599cd   combobox   if function   security   microsoft word   after update  
Copyright 2012 by 599CD.com, All Rights Reserved