Home > Store

Microsoft Access Developer's Guide to SQL Server

Register your product to gain access to bonus material or receive a coupon.

Microsoft Access Developer's Guide to SQL Server

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2001
  • Edition: 1st
  • Book
  • ISBN-10: 0-7686-5738-5
  • ISBN-13: 978-0-7686-5738-8

Microsoft Access 2000 Developer's Guide to Microsoft SQL Server provides much needed information and guidance for the Access power user or developer who wants to exploit the power of SQL Server. Written by Access experts and Microsoft MVPs Mary Chipman and Andy Baron, this hands-on guide provides you with the practical knowledge you need to harness the enterprise-level power and scalability SQL Server offers, while using the Access tools you are familiar with. More than just a migration guide, you will benefit from the authors' expert discussions of topics including the new Microsoft Database Engine (MSDE), Transact SQL, building stored procedures and views, converting your applications to SQL Server, working with SQL Server security, and building Access interfaces to SQL Server databases.

Sample Content

Table of Contents



Introduction.


1. Converting Your Access Database to SQL Server.

Reasons to Upsize.

Number of Users. Size of the Database. Performance. Transaction Logging. Data Integrity. Security. Administration. SQL Server Tools.

Getting Started with the Upsizing Wizard.

Versions of SQL Server Supported by the Upsizing Wizard. Access 2000-SQL Server 2000 Compatibility Issues. Unattended Upsizing. Upsizing Wizard Choices. What Gets Upsized. What Gets Ignored. How Indexes Are Handled. How Data Types Are Mapped. Upsizing Queries to an Access Project (ADP). Upsizing Forms to an Access Project (ADP). Upsizing Reports to an Access Project (ADP).

Upsizing Gotchas: What to Watch Out For. What About Security? Using the Upsizing Wizard to Create Linked Tables.

Upsize and Link to an Access MDB. The Upsizing Report. Testing the Result. Upsize to an Access Project. Upsizing with Previous Versions of Access.

Upsizing Using Data Transformation Services (DTS). Using Linked Servers for Data Access. Beyond Upsizing: What's Next?

How Access Handles Linked SQL Server Data. New Data Type Choices. Code Cleanup. Forms and Reports. Security.

Summary.



2. SQL Server Fundamentals.

SQL Server Editions.

Features Supported. Pricing and Licensing.

SQL Server Graphical Components.

Enterprise Manager. Query Analyzer. Performance Monitor. Data Transformation Services (DTS). Service Manager. Client Network Utility. Server Network Utility. Books Online.

The Server.

Registration Properties. Server Properties. The System Databases. System Stored Procedures. Management. Database Maintenance Plans. Replication. Security. Support Services. Meta Data Services. About Multiple Instances of SQL Server.

The Database.

Files and File Groups. The Transaction Log. Database Components.

What's New in SQL Server 2000. Installing SQL Server.

Before Installing SQL Server. Setting Up the System Accounts. Domain User Account Requirements. Installing Database Components.

Summary.



3. Understanding SQL Server Security.

Why Security Is Important.

Access Security Versus SQL Server Security.

Letting Users In.

Authentication Basics. Logins and Permissions. The Benefits of Windows NT/Windows 2000 Authentication (Integrated Security). The Benefits of SQL Server Authentication. How NT Authentication and SQL Server Authentication Work Together. Logins and Built-in Accounts. Granting Database Access to Logins. Understanding Fixed Server Roles. Understanding Fixed Database Roles. Object Owners. Working with User-Defined Database Roles. Understanding Application Roles. Keeping Track of Logins and Roles. Removing Users and Logins. Resetting SQL Server User Passwords.

Understanding Permissions.

The Three Types of Permissions. Implementing Security Using Stored Procedures. Implementing Security Using Views. Implementing Security Using User-Defined Functions. Implementing Column-Level and Row-Level Security. Encrypting Functions, Views, and Stored Procedures.

What About Access Security?

Security in an Access Database (MDB). Security in an Access Project (ADP).

Upsizing Access Security Permissions on Tables.

Defining the Goal. Determining the Methods. Using DAO to Retrieve Access Permissions. Using ADO to Set SQL Server Permissions.

Summary.



4. Introduction to Access Projects (ADPs).

About Access Projects.

Advantages of Access Projects. Disadvantages of Access Projects.

Creating a New Access Project.

Connecting to SQL Server. Designing SQL Server Objects in an Access Project.

Forms in Access Projects.

Using Form Properties. Working with the Form's Recordset.

Managing Your SQL Server Through an Access Project. Summary.



5. Linking to SQL Server Using Access Databases (MDBs).

Advantages of Using a Jet Database (MDB) Front End. How Jet Uses ODBC.

ODBC Components. Setting Up a DSN with the ODBC Data Source Administrator.

Working Efficiently with Linked Tables.

Linking Tables. Size Matters.

Creating Efficient Bound Forms.

Form Properties. Restricting Data with Prefiltering. Loading a Single Record from an Unbound Form. Filling List Boxes and Combo Boxes on Demand. Minimizing the Number of Recordsets Open.

Using Pass-Through Queries.

Creating a Pass-Through Query. Running a Stored Procedure from a Pass-Through Query. How to Pass Parameters to a Pass-Through Query. A Generic Procedure for Modifying Pass-Through Queries.

Caching Data in Local Tables.

Creating Local Tables. Refreshing Data in Local Tables.

Tweaking ODBC Settings to Tune Performance.

Using the Options Dialog Box. Using the Windows Registry. Using an MSysConf Table.

Summary.



6. ActiveX Data Objects (ADO) Fundamentals.

A Short History of Data Access Technologies.

ODBC (Open Database Connectivity). DAO (Data Access Objects). Remote Data Objects (RDO). OLE DB. ADO (ActiveX Data Objects).

Getting Started with ADO.

Setting a Reference to the ADODB Object Library.

Creating an ADO Connection Object.

Declaring and Creating a Connection Object. Opening the Connection Object. Connection Properties and Methods.

Creating an ADO Recordset Object.

The Recordset's Open Method. Opening a Recordset. Updating Data Using Recordsets. Navigating, Searching, Filtering, and Sorting.

Creating an ADO Command Object.

Command Object Properties and Methods. The Execute Method. Executing a Simple Command. Executing a SQL Statement with Parameters. Executing a Stored Procedure. Executing a Stored Procedure with Parameters.

Mixing and Matching the Three Objects.

Opening Recordsets with Command Objects. Reusing Command Objects with Recordsets. Going Solo with the Connection Object. Returning Multiple Recordsets.

Advanced ADO.

Creatable Recordsets. Persistent Recordsets. ADO Events. SHAPE: Creating Hierarchical Recordsets. Streams and Records.

Other ADO Libraries.

Microsoft ADO Extensions for DDL and Security (ADOX). Microsoft Jet and Replication Objects 2.1 (JRO). Microsoft ActiveX Data Objects Recordset (ADOR). Microsoft ActiveX Data Objects (Multidimensional) (ADOMD). ADO.NET.

Choosing the Best Tool for the Job at Hand.

When DAO Is the Best Choice. When ADO Is the Best Choice.

Summary.



7. Designing and Creating a SQL Server Database.

Designing a Relational Database.

Review of Relational Database Design Principles.

Implementing Your Design in SQL Server 2000.

How Databases Are Stored in Files. How the Transaction Log Works. Creating Databases Using the Enterprise Manager. Creating and Modifying Tables. Setting Relationships Between Tables.

Summary.



8. Introduction to Transact-SQL (T-SQL).

Defining Transact-SQL.

A Brief History of the SQL Standard. The Evolution of SQL Server. What You Can Do with Transact-SQL. Working with Transact-SQL.

Referring to Objects. Selecting Data.

The SELECT Statement. The WHERE Clause. The ORDER BY Clause. Summarizing and Aggregating Data. The GROUP BY Clause. The HAVING Clause.

Joins.

Inner Joins. Outer Joins. Full Joins. Self-Joins. Using Subqueries. Union Queries.

Updating Data with Action Queries.

Using the INSERT Statement to Add Rows to a Table. Using SELECT INTO to Create a Temp Table. Using the UPDATE Statement to Modify Data. Using the DELETE and TRUNCATE Statements to Delete Data.

Using Transact-SQL Functions.

Working with Nulls. Date Functions. String Functions. Functions to Return Information. New! User-Defined Functions.

Programming in Transact-SQL.

Batches. Variables. Control of Flow Syntax.

Other Querying Techniques.

Top Values Queries. Creating Distributed Queries with Linked Servers.

Summary.



9. Creating and Optimizing Views.

Defining Views.

View Syntax. What Views Are Good For. Rules for Creating and Using Views. Views and Security.

Creating and Modifying Views.

Creating Views Using the Create View Wizard. Creating Views Using the Enterprise Manager. Creating Views Using an Access Project. Creating Views Using the Query Analyzer. Using ALTER VIEW to Modify a View. Views, Subqueries, and Outer Joins. Sorting and Top Values in Views. Views with Functions. Using System Functions. Using Views with User-Defined Functions. Horizontally Partitioned Views. Using Derived Tables and Nested Views.

Using Views to Update Data.

Restrictions on Updating Data Through Views.

Indexed Views.

When to Use Indexed Views. When Not to Use Indexed Views. Requirements for Indexed Views. Indexed Views and Inline Functions.

Optimizing Views and Queries.

How SQL Server Processes Commands. Indexing Guidelines. Using the Query Analyzer to Tune Performance.

Summary.



10. Programming Effective Stored Procedures.

Stored Procedure Fundamentals.

Understanding Batches, Scripts, and Stored Procedures. Basic Stored Procedure Syntax. Stored Procedures and Security. Tools for Creating Stored Procedures. Executing a Stored Procedure.

What's Under the Hood.

Compiling Stored Procedures. Understanding Transactions.

Creating Parameterized Stored Procedures.

Declaring and Using Variables in Stored Procedures. Input and Output Parameters.

Error Handling in Stored Procedures.

Preventive Error Handling. Returning Success/Failure Information. Handling Runtime Errors.

Creating UPDATE, DELETE, and SELECT Stored Procedures.

Creating an UPDATE Stored Procedure. Creating a DELETE Stored Procedure. Creating a SELECT Stored Procedure. Some General Guidelines for Writing Stored Procedures.

Debugging Stored Procedures.

Starting the Transact-SQL Debugger.

Advanced Stored Procedure Topics.

Using Temp Tables. Using Cursors.

Stored Procedures and User-Defined Functions. The System Stored Procedures.

Extended Stored Procedures.

Summary.



11. Scaling Up with Unbound Access Applications.

What Is an Unbound Application and Why Build One? Using Stored Procedures.

Stored Procedures and Business Rules. Coding Conventions for Stored Procedures.

Deciding Between Access Databases and Access Projects. Unbound MDBs.

The Sample Application. ADO Connections: Using a Global Connection Object. Displaying Data in Unbound Forms. Creating an Efficient Search Form. Saving Changes to the Data.

Unbound ADPs.

Handling ADP Connections. Displaying Data: Creating Unbound Forms. Handling Subform Data. List Box and Combo Box Techniques for Unbound ADPs.

Summary.



12. Building Access Reports from SQL Server Data.

General Guidelines for Creating Efficient Reports.

Fetch Less Data. Tune the SQL Server Tables. Preaggregate Data with Views. Preaggregate Data with Stored Procedures. Preaggregate Data with User-Defined Functions.

Using Access Features to Filter Data.

Opening a Report Using DoCmd.OpenReport.

Reporting in Access Projects.

Using Input Parameters. Using Server Filter By Form. Using the ServerFilter Property. Basing Reports on Views. Basing Reports on Stored Procedures. Creating a Crosstab Report. Basing Reports on Functions.

Reporting in Access Databases.

Basing Reports on Views. Basing Reports on Pass-Through Queries.

Reporting on OLAP Data.

OLAP Fundamentals. Working with OLAP Data in SQL Server. Setting Up a Linked Server. Querying the Linked Server. OLAP Reporting in Access Projects. OLAP Reporting in Access Databases.

Summary.



13. Internet Features in Access and SQL Server.

Publishing SQL Server Data to the Web.

The Web Assistant Wizard. The SQL Server Web Stored Procedures. The Web Job.

XML in SQL Server 2000.

A Brief Introduction to XML. XML Features in SQL Server 2000. Before You Start. Using URL Queries in Access. Modifying Data Using Updategrams. Using OPENXML in Transact-SQL.

Access Internet Features.

Creating HTML and Active Server Pages from Access. Access 2000 Data Access Pages (DAPs). Using the Office Web Components. Deploying Data Access Pages.

Summary.



14. Architecting Distributed n-Tier Applications.

Overview of n-Tier Development.

Explaining COM (Component Object Model). Microsoft Transaction Server (MTS). COM+. Microsoft Message Queue (MSMQ). Microsoft Internet Information Services (IIS) and Active Server. Pages (ASP). Web-Based Architectures. Where Does Access Fit In? Designing an n-Tier Application Around Access. Data Access with Class. Designing the Sample Application.

Creating Middle-Tier Components.

Using Visual Basic to Create COM Components. Moving Data Classes to Visual Basic. Installing the Middle-Tier Components in COM+. Client Setup. Resource Pooling of Middle-Tier Components.

Security and Connection Pooling.

Application Roles and Authentication.

Summary.



15. Deployment, Tuning, and Maintenance.

Tuning. Monitoring Performance.

Getting Started with the SQL Server Profiler. Using the System Monitor/NT Performance Monitor. Using the SQL Server Agent.

Backup and Maintenance.

Transactions and Data Consistency. Analyzing Your Backup Needs. Don't Forget the System Databases. Performing a Database Backup. The Database Maintenance Plan Wizard. Restoring from a Backup. Restoring to a Point in Time

Deployment.

Microsoft Office Developer (MOD) Features. The Access Runtime. Running the Package and Deployment Wizard. Copying or Moving Your SQL Server Database.

Summary.



Appendix A. Resources.

Books. Web Sites. Useful Downloads. Magazines and Journals.



Index.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020