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 Object’s 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

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

...............................6-20 Questions....................................................................................................................0 and Visual Basic 6...................................................................................6-19 Offline Data Storage ...................................................................................................................6-3 Introduction to Replication....6-2 Linked Servers ....6-1 Developing Distributed Applications ....................6-19 Using Creatable Recordsets.............. Last updated: 9/15/99 TOC-3 ......................................6-11 Components of Replication.........................6-13 Offline Applications ...................................................................6-25 INDEX ...................0 Copyright © 1999 by Application Developers Training Company All rights reserved........................................ Reproduction is strictly prohibited....................................................................................................Table of Contents ADVANCED TOPICS ...................... INDEX-1 Using Microsoft SQL Server 7.......................................................................................................................................................................................6-24 Answers .........6-12 Replication Models .........

0 and Visual Basic 6. Reproduction is strictly prohibited.Table of Contents TOC-4 Using Microsoft SQL Server 7.0 Copyright © 1999 by Application Developers Training Company All rights reserved. Last updated: 9/15/99 .