ODBC REPORTS How to Use Access to work with MS SQL Server Database.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Specify options. Customize the appearance of messages. Add a signature to an .
Advertisements

Connect to Excel Spreadsheet with an OLE DB Connection.
MS Access 2003 Tutorial By: Juan GUANTENG!!! Y7. Step 1 Launch the Microsoft Access 2003 program. This can be done by clicking an icon on the desktop.
Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Accessing Your Data Using Reports, Grids and Queries.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
Chapter 1 Databases and Database Objects: An Introduction
Microsoft Office 2007 Access Integration Feature Sharing Data Among Applications.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Queries Help Topics Using the Access 2007, you can press the F1 to pop up the help windows, where you can search the following topics to help to generate.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Exporting Data and Creating Financial Reports with Excel and Crystal Slide 1 Exporting Data and Creating Financial Reports with Excel and Crystal By Peter.
1 Client/Server Database Tutorial. SQL Server Connection through MS Access FACBUSAD1 SQL server MS Access MGD B106 Computer or your own PC Remote SQL.
Create Forms Lesson 5. Software Orientation Creating Forms A form is a database object –enter, edit, or display data from a table or query Providing.
Access Tutorial 10 Automating Tasks with Macros
Chapter 3 Maintaining a Database
Advanced Forms Lesson 10.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2010.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
Chapter 7 PHP Interacts with Ms. Access (Open DataBase Connectivity (ODBC))
Multiple Cases Access Utilities1 Access & ODBC Managing and Using ODBC Connections P.O. Box 6142 Laguna Niguel, CA
ODBC : What is it and how does it work with MDS ?.
Chapter 1 Databases and Database Objects: An Introduction
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
MS Access Tour Sesión # 6. MS Access Tour Database Management System (DBMS): An application software that allows users to create, manipulate, and change.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Copyright 2008 Judith A Copeland - Accessing The Database By Judi Copeland.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
Analysing Data with Excel Viewing Help To view Help 1.On the Start menu, point to Programs, and then click Microsoft Excel. 2.On the Help menu,
Crystal And Elliott Edward M. Kwang President. Objective A brief demo of Crystal Report to entice you –People spend thousand of dollars to attend Crystal.
5 Copyright © 2004, Oracle. All rights reserved. Creating a Master-Detail Form.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2007.
1 Database Systems Introduction to Microsoft Access Part 2.
Presentation On How To Create Connection To A Database.
Creating an Access Project* If you came to this presentation via a web browser, right-click and choose “Full Screen” before proceeding. Click mouse or.
AVCE ICT – Unit 7 - Programming Session 16 – Database and VB.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
FIRST COURSE Integration Tutorial 2 Integrating Word, Excel, and Access.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
Sorting Contacts with Categories Lunch and Learn.
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
How To Start a SQL server Connecting to SQL Server.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
Data Virtualization Demoette… ODBC Clients
MATLAB DATABASE Configuration
, MS-Access, QBE, Access/Oracle
Using Macros, Switchboards, PivotTables, and PivotCharts
Miscellaneous Excel Combining Excel and Access.
W04 Connecting 3rd Party Application to ODBC
Forms and Reports 09.
Analyzing Data Using Access
Basic Database Concepts
VISUAL BASIC INTRODUCTION TO DATA CONNECTIVITY.
Microsoft Office Access 2003
Access Review.
Creating a Master-Detail Form
Database 2.
Presentation transcript:

ODBC REPORTS How to Use Access to work with MS SQL Server Database

Open This folder

Open Access

Open a blank database

Give the DB an appropriate name.

Open the External Data menu

Click on the ODBC Database ODBC stands for Open Database Connectivity ODBC is Microsoft's strategic interface for accessing data in a heterogeneous environment of relational and non- relational database management systems.

Click on this button. This gives an active link with the Microsoft SQL Server database. Any changes made in Access will be reflected in the SQL Server database.

A new DSN (data source name) Name has to be created.

1. In this example it is: Oasis Instance Link. You can choose any name you like. 2. Click on New

1. Scroll down and choose SQL Server 2. Click Next

1. Once again I chose Oasis Instance link. 2. Click Next

Click Finish

1. I have described the data source as Oasis 2. The server is alar\oasis 3. Click Next

2. Click Next 1. Use Windows NT Authentication

Choose your database as the default.

Click Next

Click Finish

Test the Data Source

2. Click OK 1. The result should read like this.

Click OK

1. You are now returned to the ODBC data source window. Scroll through and choose the link to Oasis. In this example I set it up as Oasis Instance Link. Click OK

The tables from the default database should now appear.

1. I highlighted the four tables I wanted to use. Click OK

These four tables now appear in Access. 1. Table 1 can be deleted. 2. Click on Database Tools.

The relationships between the tables now have to be established

All tables are highlighted. Add the tables to the Relationship window.

The relationships between the tables are now established

Once the relationships are established, queries can now be created. A query will be created in order to produce a report.

Select the query wizard.

Close this window.

Right Click on Query 1 and select the SQL view.

This is the SQL view

SELECT c.CustomerNumber, c.CustomerLastName, iln.InvoiceNumber,i.SaleDate,sum(iln.QuantitySold * inv.SellingPrice) as Total from dbo_CUSTOMER c, dbo_INVOICE i, dbo_INVOICE_LINE_ITEM iln, dbo_INVENTORY inv where c.CustomerNumber = i.CustomerNumber and i.InvoiceNumber = iln.InvoiceNumber and iln.InventoryNumber = inv.InventoryNumber GROUP BY iln.InvoiceNumber, c.CustomerNumber, c.customerlastname,i.SaleDate ORDER BY c.CustomerNumber, iln.InvoiceNumber I want to produce a Sales Report Notice the ‘dbo’ in front of each table name. The actual names of each table are preceded by ‘dbo’

The SQL is structured in the same manner as SQL SERVER To run the query

This query will now be used to generate a report using the Report Wizard.

Click on the Create Menu.

2. Run the Report Wizard. 1. Save the query

All lines will be selected. Click Next

A grouping by CustomerNumber

No sorting since the SQL already pre-sorted the query.

Stepped lay out

The name of the report.

Click on the Design View to change the format of the report.

I want to create a Sales Invoice

Notice the concatenation. Access uses ‘&’ instead of CONCAT

The initial report looks like this.

Original Design View

The New Design View

The Invoice