SQL Lunch–SQL Reporting Services

Tomorrow at 11:30 CST Pam Shaw will be talking SQL Reporting Services (SSRS).  If you have time, join us for some SQL Lunch.  Here are the details:

#64-Taking the Scary out of Monster Reports

Lunch Image

Speaker: Pam Shaw

Add To Outlook: Add To Calendar

Date and Time: 3/22/2012 11:30:00 AM CST

BIO: Pam Shaw has been in IT for almost 30 years. Since 2001, Pam has been working with SQL Server, first 2000, then 2005 and now 2008. Pam is currently an independent contractor. Pam is also the Chapter Leader of the Tampa Bay SQL Users Group – a local chapter of PASS and organizer of SQL Saturday Tampa.

Topic: #64-Taking the Scary out of Monster Reports
So the big wigs have come up with a “master” report that shows everything you could ever want on a single report. It includes grids and charts of varying sizes and complexities. Did I mention they want it pretty as well? In this session we will discuss how to use SQL Reporting Services 2008 R2 to bring it all together while avoiding the pit falls and mistakes. The demonstration will show how to build a multi-page, dashboard style report to manage your report server showing a multitude of grids and charts. We will discuss the challenges with data reuse and formatting while exploring techniques for getting them to work. To get the most out of this session, you should be able to build a report in SSRS.

Visit www.sqllunch.com for upcoming SQL Lunch events.

Talk to you soon,

Patrick LeBlanc, founder SQL Lunch.

Uncategorized

SQL Lunch Rescheduled

Due to a few scheduling conflicts the SQL Lunch scheduled for tomorrow as been rescheduled.  The event will be on March 22, 2012 at the same time.  I apologize for any inconvenience that this may have caused anyone.  Here are the details of the lunch:

#64-Taking the Scary out of Monster Reports

Speaker: Pam Shaw

Add To Outlook: Add To Calendar

Date and Time: 3/22/2012 11:30:00 AM CST
BIO: Pam Shaw has been in IT for almost 30 years. Since 2001, Pam has been working with SQL Server, first 2000, then 2005 and now 2008. Pam is currently an independent contractor. Pam is also the Chapter Leader of the Tampa Bay SQL Users Group – a local chapter of PASS and organizer of SQL Saturday Tampa.

Topic: #64-Taking the Scary out of Monster Reports
So the big wigs have come up with a “master” report that shows everything you could ever want on a single report. It includes grids and charts of varying sizes and complexities. Did I mention they want it pretty as well? In this session we will discuss how to use SQL Reporting Services 2008 R2 to bring it all together while avoiding the pit falls and mistakes. The demonstration will show how to build a multi-page, dashboard style report to manage your report server showing a multitude of grids and charts. We will discuss the challenges with data reuse and formatting while exploring techniques for getting them to work. To get the most out of this session, you should be able to build a report in SSRS.

See you at Lunch

Patrick LeBlanc, founder www.sqllunch.com

Uncategorized

Speaking at the SQL Lunch UK

Yep, that’s correct, the SQL Lunch has expanded to the UK with one slight change.  Unlike the SQL Lunch that I host online here in the U.S., the SQL Lunch UK, which is hosted by Dave Bally (@davebally), will be held at a physical location.  Well except for the first meeting.  I have the great honor of being the first speaker.  Since the presentation is in London you will have to wake up a little early (if you are in the U.S.) to catch the presentation. 

SQL Lunch UK Details

Founder:  Dave Ballantyne

Website:  www.sqllunch.co.uk

Event Details:  Click Here

Location:  The Golden Fleece, 8-9 Queen Street, London, EC4n 1SP

Attending In Person:  Register Here

Meeting Details

Topic:  Introduction to SQL Server 2012 AlwaysOn

Speaker:  Me

Time:  12:30 (UK Time) or 6:30 AM CST

I will be broadcasting the meeting live via Microsoft Lync.  If you would like to join in on the conversation use the following link:

Join Meeting:  https://join.microsoft.com/meet/pleblanc/GWQ4S5QH

So I will see you at the first SQL Lunch UK

Talk to you soon,

Patrick LeBlanc, founder SQL Lunch

AlwaysOn, High Availability, SQL Lunch, SQL Server 2012

SQL Rally: Don’t Vote for My Sessions

So I found out on Friday that I am going to be a speaker at the Dallas SQL Rally, which is very exciting.  I had the honor of not only presenting a pre-con and one regular session at the first SQL Rally in Orlando, but since there was a speaker no show I had the opportunity to give an impromptu session.  You had to be there to get the full affect.  The event was great and being a speaker made it ten times better. 

After presenting several times at many different events I have realized that one session is more than enough.  Now it’s not that I would not give 2, 3, 4 or what ever number of presentations needed at one event, I just think it’s all about the opportunity to speak.  After I clicked the submit button to place my votes for the regular sessions I felt guilty voting for myself.  There were several individuals that hadn’t been given a guaranteed spot and why should I want more then one when there are speakers willing to give their time and knowledge.

You maybe thinking this guy is crazy.  I am , a little, because I really enjoy speaking and sharing my knowledge.  Some people get high on other things, I actually get high on speaking.  Don’t believe me, talk to me after one of my presentations.  Ok, back to the topic.  I also think that we need to continue to grow the SQL Community.  This is one reason I started the SQL Lunch.  I want to give people that are new to speaking a venue to start and become better at speaking.  Eventually, they should be able to present on a grander scale like the SQL Rally and the PASS Summit

Ultimately the choice is yours as a speaker.  I am not going to deny the fact that deep down inside I would love to give 2 or maybe even three sessions at every event that I attend, but EGO aside I would be more than content with ONE.  As a result, I am campaigning for all those individuals that haven’t been selected as a speaker.  Unfortunately, this did not hit me until after I placed my votes.  I wish I could go back in time to change my votes.  Maybe I will spend the next couple of days watching Back to the Future and try to build my own version of a time travel machine.   I’ll start by designing a “Flex Capacitor”. 

So if you haven’t voted, which you should do so now, consider what I have stated above.  I do understand that this is a PAID event and that the selection committee must ensure that the quality of the presentations are inline with the costs of the event.  I do also understand that the final twenty are up for community vote.  If you are attending do you really want to see the same presenters over and over.  Your choice. 

This post may upset some speakers and I may end up on some black list of speakers.   When I made my selection I made my selection based on the title and abstract of the session instead the speaker.   This way my selections are completely unbiased.  However, if I had a chance to do it again I would make a new list that did not included selected speakers and then make my choices based on my new list.  Is it fair, probably not.  I spent a lot of time submitting my 4 sessions and I definitely would have enjoyed having more than one selected.  Regardless, I am going give a great presentation and attend as many other sessions as possible. 

In closing, I am asking each of you as your vote just to think about this a little.  Remember, if you see Patrick LeBlanc next to any of the presentations, pretend it doesn’t exist.  If you feel that you just can’t ignore my GREAT presentations then you have to do what you have to do.  Just remember, there are other great speakers beside ME (That’s the EGO talking), and how can they improve their skills if we don’t give them a chance.

See you at the SQL Rally in Dallas,

Patrick LeBlanc, founder www.sqllunch.com

Speaking, SQL Rally

AlwaysOn: Configuring Secondary Read-Only Access

Now that you have AlwaysOn configured and your first Availability Group (AG) created, it’s time to start leveraging those secondary replicas.  The first step is to set the connection access for the primary and secondary role, if you haven’t already done so.  You have three choices:

  1. No:  No user connections are allowed to the secondary replica.
  2. Read-intent only:  Only read-only connections are allowed
  3. Yes:  All connections are allowed, but only for read-only access

So the main difference between Read-intent-only and Yes is that the later allows all connections, regardless if it read or read/write, but only read access will be granted.  If you did not set the properties during AG creation you can use TSQL, PowerShell or Management Studio to update the configuration. 

If you have not configured your secondary replicas for read-only access open management studio, locate and expand the AlwaysOn High Availability folder.  From there expand the Availability Group folder, locate your AG and right-click it.  In the Availability Replicas section of the AG Properties screen, locate the replica you want to configure for read-only access and change the Readable Secondary Property. 

image

Click OK. 

Now, before you can actually read the secondary, in addition to setting the Readable Secondary property you will also need to perform two additional configurations.  First you will need to have a AG Listener configured. If you have not configured the AG Listener you can do so using Management Studio.

To create a listener with Management Studio:

  1. Expand the AlwaysOn High Availability folder, expand Availability Groups, locate and expand the AG that needs the Listener. 
  2. Next right-click the Availability Group Listeners folder and select Add Listener.
  3. On the Add Listener dialogue box specify the following:
    1. Listener DNS:  Network Name
    2. Port:  TPC port
    3. Network Mode:  TCP protocol (DHCP, Static IP)

Now you have a listener.  You can now connect to management studio using this Listener DNS.  Give it a try. 

The final step is to configure Read-only routing, which is the ability of SQL Server to route incoming connections to the Listener to a secondary that is configured for read-only access.  The read-only routing only works if the client connects using the AG Listener and the ApplicationIntent property is set to ReadOnly in the connection string. 

To configure the read-only routing you must first set a READ_ONLY_ROUTING_URL for each replica.  A sample script is as follows:

ALTER AVAILABILITY GROUP [PatricksAG]
MODIFY REPLICA ON
N’SQLAlwaysOn1′ WITH
(SECONDARY_ROLE (READ_ONLY_ROUTING_URL = N’TCP://SQLAlwaysOn1.domain.com:1433′));

You must set this option for each replica.  After you have done this you must set the READ_ONLY_ROUTING_LIST for each replica.  This list specifies how the routing will take place in the order the targets are specified.  A sample script is as follows:

ALTER AVAILABILITY GROUP [PatricksAG]
MODIFY REPLICA ON
N’SQLAlwaysOn1′ WITH
(PRIMARY_ROLE (READ_ONLY_ROUTING_LIST=(‘SQLAlwaysOn2′,’SQLAlwaysOn3′, ‘SQLAlwaysOn1′)));

Again this must be set for each replica.  Once these steps are complete, you can now use the ApplicationIntent property in your connection strings.  This property can be used with the SQL Server Native Client OLE DB provider and ODBC driver, and ActiveX Data Objects (ADO).  The following is a sample connecting string:

Server=tcp:AGListener, 1433;Database=AlwaysOnDB1;IntegratedSecurity=SSPI;ApplicationIntent=ReadOnly

If an application connected using the above connection string it would be routed to one of the secondary replicas. 

If you want to see the affects of using Read-intent only over Yes give this a try.  First set the Readable Secondary property of one of your secondary replicas to Yes.  Using Management Studio connect to the secondary using the physical machine name not the AG Listener name.

USE<Your Database Name>
GO
SELECT * FROM INFORMATION_SCHEMA.tables

In the USE statement you should include a database that is one of your Availability Databases.  Run this query and it should yield results.  Disconnect the server (Secondary Replica) from the Object Explorer and close the query window.  Now change the property to Read-intent only.  Reconnect to the server and open a new query window and execute the same query.  Instead of results you will receive the following error:

Msg 978, Level 14, State 1, Line 1
The target database (‘AlwaysOnDB1′) is in an availability group and is currently accessible for connections when the application intent is set to read only. For more information about application intent, see SQL Server Books Online.

To circumvent this problem, you could use the Additional Connection Parameters tab when connecting to an instance of SQL Server 2012 with Management Studio. In the text box type:  ;ApplicationIntent=ReadOnly.  Your screen will look like this(you must include the semicolon):

image

When you connect and run the query everything works great.   I will be doing a SQL Lunch soon demonstrating this and showing how it will work with a .NET application.  Stay tuned.

If you have any questions or concerns regarding this post please feel free to email me at pleblanc@sqllunch.com

Talk to you soon,

Patrick LeBlanc

www.sqllunch.com

High Availability, SQL Server 2012 , ,

Speaking for Baton Rouge UGs and SQL Lunch Next Week

I have been quiet over the past year trying to get acclimated to my new job and my new found work life balance.  Now that I have figured it all out I am slowly beginning to present on a regular basis.  Next Wednesday (2/8/2012) I have the opportunity to give a short talk on SQL Server 2012 AlwaysOn to the Baton Rouge SQL Server and .Net Users group.  If you are in and around the area please join me.  While I only have 15 minutes to talk, I promise a great presentation.  I may run over just a little to mix things up for the primary speaker.  The meeting details are below:

Baton Rouge SQL Server User Group

Date: Wednesday, February 8, 2012
Location: LSU Campus, Turead Hall Room 103 - http://g.co/maps/xb5pf

The next session, Build, Secure, & Deploy an SSAS Tabular in 30 minutes, is a live webcast that is hosted on my website SQL Lunch.  The meeting details are below:

SQL Lunch

Add To Outlook: Add To Calendar

Date and Time: 2/7/2012 11:30:00 AM CST

Topic: #62-Build, Secure, & Deploy an SSAS Tabular in 30 minutes
In this demo-centric presentation I will show you how to build a fully functional analytic model, add database and row-level security and finally deploy your model to an SSAS server running in tabular mode. I will also show you how to quickly build a quick report that provides insight into the data.

Talk to you soon,

Patrick LeBlanc

www.sqllunch.com

Speaking, SQL Server 2012, SSAS , , , ,

PowerView: Coordinating Chart Colors

During a recent customer engagement I was asked if it was possible to ensure that the colors in a Line Graph for a particular value would be the same color for the same value on a Bar Chart.  I thought, GOOD QUESTION.  I launched PowerView and started creating a report.  First I created the following chart:

image

Notice the color of each line, blue for maximum, red for average and orange for minimum.  I created a bar chart using the same values, but using a different axis value.  Notice that the colors don’t match. 

image

Instead I have blue for average, red for minimum and orange for maximum.  What to do?  Well it’s pretty simple.  to the left of the report, locate the Values box.  Initially this is what it looked liked for the bar chart:

image

To correct the problem, change the order of the values to match the order used for the line graph.  Once that is done your colors should be the same for each value across the two charts.

image

I think this is a great feature.  The final chart resembled the following screenshot:

image

Talk to you soon,

Patrick LeBlanc

P.S.  Stay tuned for SQL Lunch updates.

SQL Server 2012 ,

Speaking at Knoxville SQL Server User Group

I am excited to announce that I will be giving a virtual presentation to the Knoxville SQL Server User Group.  While I have been giving several internal presentations at Microsoft, I have not been speaking in the community on a regular basis.  I look to change that this year.  There will only be two slides in this presentation.  Most of the time will be spent discussing the new feature and building the model.   The details of the meeting is as follows:

Topic:  Build Your First SSAS Tabular Model

When:  January 11th, 2012 at 12:00 PM – 1:00 PM (EDT)

Where: Join Meeting

Abstract: In this session I will demonstrate how to use the new features in SQL Server 2012 to develop a BI Semantic Tabular Model in Analysis Services.  In addition, I will demonstrate how to visualize the model using SSRS, Power View, Excel and Performance Point. This is presentation is all DEMO!!!  NO SLIDES!!!

Eventbrite Registration Link: http://knoxsqljan2012.eventbrite.com/

Hope to see you online.

Talk to you soon,

Patrick LeBlanc

Uncategorized

Free Half-Day BI Workshop

If you are in and around Dallas next week drop by my FREE half-day Business Intelligence workshop.  The details are below:

Unlock your Data with the Microsoft Business Intelligence Platform

Event Details:
November 8, 2011
Registration at 8:00am
 
Microsoft Office, Las Colinas
LC1
7000 N. State Highway 161
Irving, TX 75039
Registration Begins at 8:00am
 
Click to Register

Please join us for a free half day workshop where we will take off the covers for the next release of SQL Server and Business Intelligence.  You will learn from the experts how to build and deploy impactful analytic and reporting solutions that are simple to use and consume to drive insight and understanding.

Opening Session (45 min):  For CIO’s, IT Management, and IT professionals.  We will take a look at the new key features of SQL Server ‘Denali’ for High Availability, Security and Compliance, Performance, and the new BI capabilities including “Project Crescent” to WOW your end users with beautiful easy to use reports.

BI Workshop (3 hours): For IT professionals, DBA’s, and Developers.  In this workshop you will learn how to build a data warehouse on the Microsoft BI Platform.  We will cover design and modeling, ETL with Integration Services, Multi-Dimensional and Tabular Models for slicing and dicing data in Analysis Services, enriching your data with key performance indicators for dashboards, and delivering eye-popping reports with Power View, formally know as Project Crescent and reporting services.

Presenters 

· Patrick  LeBlanc – Author, Former SQL MVP, and Microsoft US Education SQL Server Technical Professional

· William Assaf –  SQL Server Professional, Senior Consultant at Sparkhound Inc

See you there!!

Uncategorized

SSIS 2012: Project Reference

One of the less advertised enhancements of SSIS in SQL Server 2012 is the Project Reference type available when using the Execute Package task.  Open the Execute Package Task Editor and select Package from the left window.  Select Project Reference for the ReferenceType property.

image

Now you can reference any package that exists in the same project.  Just click the drop down list labeled PackageNameFromProjectReference and select the package from the list.  This is especially useful when building Master Packages for Data Warehouse loads.  This streamlines the process of configuration and deployment by reducing the need to manage package locations (file or server).

Talk to you soon,

Patrick LeBlanc

SQL Server 2012, SSIS