insert presentation title heremm.dd.yy, city, st sql reporting services – building the report...

13
Insert Presentation Title Here mm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc.

Upload: katherine-tyler

Post on 27-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Insert Presentation Title Here mm.dd.yy, City, ST

SQL Reporting Services – Building the Report

Kevin FordServices ConsaultantAccela, Inc.

Page 2: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

mm.dd.yy, City, STInsert Presentation Title Here

Tools

• Before continuing please make sure that you have downloaded and installed– Microsoft SQL Server 2005 Express Edition Toolkit

http://go.microsoft.com/fwlink/?linkid=65111– Additionally make sure that you have SQL Server Management Studio

Express installed (this is also a part of the above package)– A good text editor

• I use gVIM

• Text Edit Pro

• Anything with Syntax Highlighting is good

Page 3: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Sample of my Editor

Page 4: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Quick note about SQL Server Management Studio Express

• SQL Server Management Studio is going to be very useful in programming your queries and checking them before you put them into the report developer tool and is highly suggested for use.

Page 5: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Report Development Life Cycle

• Idea• Mockup• Development

– Read through spec– Develop queries for report– Layout Report with queries in place– Test Test Test– Deliver for peer-review (this may happen more than once)

• Deliver To Client

Page 6: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Creating your Database connection

• All connections to the database will be handled through the “Shared Data Sources” location in “Microsoft Visual Studio” so lets create one.

Page 7: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Creating your database Connection Cont.

• Right-click on “Shared Data Sources” and select “Add New Data Source” TOOLS9”

• You will now be prompted with a screen to configure your new data source. Type “Training Class” for the name .

Page 8: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Creating your Database Connection Cont.

• Select edit to the right of the “Connection String” box, this will help you create the database connection string for the server that you are wanting to connect to.

• DEMO

Page 9: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Managing Files

• When developing reports for a client it would be best that each client have their own project in Visual Studio this way you don’t get files/reports confused between clients.

• When you send a file to a client to deploy look for the “.rdl” file this is the file that the client will need when deploying a report to a report server.

Page 10: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

SQL

• Structured Query Language• Who here has written SQL?

Page 11: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Query against 1 table

• SELECT B.B1_ALT_ID FROM B1PERMIT B

Page 12: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Query against a table for more than one value.

• SELECT COUNT(*) FROM B3PARCEL B3P

Page 13: Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc

Query against 2 tables

SELECTB.B1_ALT_ID, B3A.*

FROMB1PERMITINNER JOIN B3ADDRES B3A ON

B.SERV_PROV_CODE = B3A.SERV_PROV_CODEAND B.B1_PER_ID1 = B3A.B1_PER_ID1AND B.B1_PER_ID2 = B3A.B1_PER_ID2AND B.B1_PER_ID3 = B3A.B1_PER_ID3AND B.REC_STATUS = B3P.REC_STATUS

LEFT OUTER JOIN B3PARCEL B3P ONB.SERV_PROV_CODE = B3P.SERV_PROV_CODEAND B.B1_PER_ID1 = B3P.B1_PER_ID1AND B.B1_PER_ID2 = B3P.B1_PER_ID2AND B.B1_PER_ID3 = B3P.B1_PER_ID3AND B.REC_STATUS = B3P.REC_STATUS

WHERE1=1AND B.B1_ALT_ID = ''AND B.SERV_PROV_CODE = ''