You are on page 1of 4

Table of Contents

Using Microsoft SQL Server 7.0 and Visual Basic 6.0


Table of Contents
CONNECTING TO SQL SERVER ....................................................................1-1
Introduction to Client/Server..................................................................1-2
What Is Client/Server?...............................................................1-2
What Are Client/Server Benefits? ..............................................1-3
When Should You Consider Client/Server?...........................................1-5
Plumbing Issues....................................................................................1-7
ODBC, OLE DB and ADO .........................................................1-7
Getting Started with ADO ......................................................................1-9
Initial Steps................................................................................1-9
Getting Connected ..............................................................................1-10
What Is a DSN?.......................................................................1-10
What Is a UDL? .......................................................................1-11
The ADO Connection Object...............................................................1-14
The Connection Objects Open Method ...................................1-15
Questions............................................................................................1-19
Answers ..............................................................................................1-20
TOOLS FOR WORKING WITH SQL SERVER .................................................2-1
Enterprise Manager...............................................................................2-2
The Explorer Pane.....................................................................2-2
Using Database Diagrams.........................................................2-3
Wizards .....................................................................................2-6
SQL Server Query Analyzer..................................................................2-8
Executing Queries .....................................................................2-8
Displaying Results in a Grid.....................................................2-10
Optimization Tools...................................................................2-11
Visual Basic Database Tools...............................................................2-13
Connecting to the Database ....................................................2-13
Working with Database Objects...............................................2-14
The SQL Builder......................................................................2-15
Questions............................................................................................2-18
Answers ..............................................................................................2-19
ACCESSING DATA..........................................................................................3-1

Using Microsoft SQL Server 7.0 and Visual Basic 6.0


Copyright 1999 by Application Developers Training Company
All rights reserved. Reproduction is strictly prohibited.
Last updated: 9/15/99

TOC-1

Table of Contents
The ADO Recordset Object...................................................................3-2
Creating Recordsets..................................................................3-2
Working with Multiple Result Sets .........................................................3-6
The ADO Command Object ..................................................................3-8
Creating a Command Object .....................................................3-8
Using a Command Object (Action Query) ..................................3-9
Handling Errors ...................................................................................3-12
The Data Environment Designer .........................................................3-14
Getting Started with the Data Environment Designer...............3-14
Setting the Connection ............................................................3-15
Creating a Command Object ...................................................3-17
Using Stored Procedures.........................................................3-19
Programming the Data Environment ...................................................3-20
Working with Recordsets .........................................................3-20
Calling a Parameter Query ......................................................3-21
Questions............................................................................................3-23
Answers ..............................................................................................3-24
ADVANCED DATA OPERATIONS ...................................................................4-1
Stored Procedures ................................................................................4-2
What Is a Stored Procedure? ....................................................4-2
Writing Stored Procedures ....................................................................4-3
Writing Your Own Stored Procedures ...................................................4-8
Basic Syntax..............................................................................4-8
Questions............................................................................................4-21
Answers ..............................................................................................4-22
MOVING DATA FROM ACCESS TO SQL SERVER ........................................5-1
Upsizing Microsoft Access Data to SQL Server.....................................5-2
What Ramifications Does Moving to SQL Server Have?............5-2
OK, Ive Removed All of My BLOBs From My Database, How Do I
Now Move My Access Database to SQL Server? ......................5-4
Using the Access 2000 Upsizing Wizard .............................................5-14
Making Your Database More Efficient .................................................5-22
Data Transformation Services (DTS) ..................................................5-26
How DTS Works......................................................................5-27
Running the DTS Import Wizard ..............................................5-28
Answers ..............................................................................................5-44
TOC-2

Using Microsoft SQL Server 7.0 and Visual Basic 6.0


Copyright 1999 by Application Developers Training Company
All rights reserved. Reproduction is strictly prohibited.
Last updated: 9/15/99

Table of Contents
ADVANCED TOPICS .......................................................................................6-1
Developing Distributed Applications ......................................................6-2
Linked Servers ......................................................................................6-3
Introduction to Replication...................................................................6-11
Components of Replication......................................................6-12
Replication Models ..................................................................6-13
Offline Applications .............................................................................6-19
Using Creatable Recordsets....................................................6-19
Offline Data Storage ................................................................6-20
Questions............................................................................................6-24
Answers ..............................................................................................6-25
INDEX ..................................................................................................... INDEX-1

Using Microsoft SQL Server 7.0 and Visual Basic 6.0


Copyright 1999 by Application Developers Training Company
All rights reserved. Reproduction is strictly prohibited.
Last updated: 9/15/99

TOC-3

Table of Contents

TOC-4

Using Microsoft SQL Server 7.0 and Visual Basic 6.0


Copyright 1999 by Application Developers Training Company
All rights reserved. Reproduction is strictly prohibited.
Last updated: 9/15/99

You might also like