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

Post on 27-Dec-2015

217 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

SQL Reporting Services – Building the Report

Kevin FordServices ConsaultantAccela, 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

Sample of my Editor

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.

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

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.

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 .

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

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.

SQL

• Structured Query Language• Who here has written SQL?

Query against 1 table

• SELECT B.B1_ALT_ID FROM B1PERMIT B

Query against a table for more than one value.

• SELECT COUNT(*) FROM B3PARCEL B3P

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 = ''

top related