|
||||||
|
Access SQL Seminar Part 3 Modify Database & Table Structure with SQL
WelcomeThis 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. ResourcesMain Seminar Goals
Topics Covered
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.
Pre-RequisitesAccess SQL Seminar Part 2 is strongly recommended, but not required. VersionI am using Access 2010 in this seminar, however the lessons are perfectly valid for all versions of Access from 2003 and later. It's currently 2022 and I just recently verified that everything in this seminar still works with Access 2019 and Office 365. The SQL programming language as far as it pertains to Microsoft Access has not changed in a very long time. Enroll TodayEnroll now so that you can watch these lessons, learn with us, post questions, and more. Questions?Please feel free to post your questions or comments below. If you are not sure as to whether or not this product will meet your needs, I'd rather help you before you buy it. Remember, all sales are final. Thank you. Keywordsmicrosoft access sql, structured query language, create table, drop table, index, indexing, CREATE INDEX, CREATE UNIQUE INDEX, DROP INDEX, WITH DISALLOW NULL, WITH IGNORE NULL, WITH PRIMARY, ALTER TABLE, ADD COLUMN, ALTER COLUMN, DROP COLUMN, ALTER COLUMN NOT NULL, OpenDatabase, DB.Execute, CONSTRAINT, DROP CONSTRAINT, ADD CONSTRAINT, ANSI-92, ANSI-89, CONSTRAINT CHECK, ALTER SET DEFAULT, ALTER DROP DEFAULT, Referential Integrity, ON UPDATE CASCADE, ON DELETE CASCADE, CREATE VIEW, DROP VIEW, CREATE PROCEDURE, EXECUTE, ALTER DATABASE PASSWORD, GRANT, REVOKE, USER, GROUP, SCHEMA
|
||||||||||||||
| |||
Keywords: access seminar create table, drop table, index, indexing, CREATE INDEX, CREATE UNIQUE INDEX, DROP INDEX, WITH DISALLOW NULL, WITH IGNORE NULL, WITH PRIMARY, ALTER TABLE, ADD COLUMN, ALTER COLUMN, DROP COLUMN, ALTER COLUMN NOT NULL, OpenDatabase, DB.Execut Page Tag: whatsnew PermaLink Access SQL Seminar Part 3 |