130 likes | 252 Views
SQL Reporting Services – Building the Report. Kevin Ford Services Consaultant Accela, Inc. 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
E N D
SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc. Insert 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 Insert Presentation Title Here
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 SELECT B.B1_ALT_ID, B3A.* FROM B1PERMIT INNER JOIN B3ADDRES B3A ON B.SERV_PROV_CODE = B3A.SERV_PROV_CODE AND B.B1_PER_ID1 = B3A.B1_PER_ID1 AND B.B1_PER_ID2 = B3A.B1_PER_ID2 AND B.B1_PER_ID3 = B3A.B1_PER_ID3 AND B.REC_STATUS = B3P.REC_STATUS LEFT OUTER JOIN B3PARCEL B3P ON B.SERV_PROV_CODE = B3P.SERV_PROV_CODE AND B.B1_PER_ID1 = B3P.B1_PER_ID1 AND B.B1_PER_ID2 = B3P.B1_PER_ID2 AND B.B1_PER_ID3 = B3P.B1_PER_ID3 AND B.REC_STATUS = B3P.REC_STATUS WHERE 1=1 AND B.B1_ALT_ID = '' AND B.SERV_PROV_CODE = ''