Author Archive

Jacksonville Code Camp 2012

Thursday, October 4th, 2012

Hello one, hello all. It has been quite a while since I have blogged. I am looking forward to starting back up and get in full swing of the things again. This is going to be a short blog post as I am just letting you all know about a local Code Camp that I will be speaking at this coming weekend. If you are in or near Jacksonville Florida, this is a great event put on by the local Code Camp team. Please be sure to check out the website for the lineup, further details and to register for the event at:

http://www.jaxdug.net/CodeCamp/Home

I hope to see you there. If you see me, please be sure to stop me and say hello.

Thanks for reading,

Brian K. McDonald, SQLBIGeek

SQL Saturday 85 Follow Up

Sunday, October 2nd, 2011

Last weekend I travelled down to SQL Saturday 85 in Orlando, FL. Like all of the other events that I’ve presented at, this event was great. The last I heard, there were nearly 300 attendees and it seemed that all were very pleased with the event. Check-in went smoothly especially with the pre-checkin documents that you could print and bring to the event. Lunch was very good. Most of the presenters put their SQL Saturday Apron’s on and dished out the grub. Then the talks… What is there to say about the talks from the caliber of people giving back to the community by talking about something they know?

If you were in my session, you could probably tell how passionate I am about Business Intelligence and IT in general. I’ve been doing it a long time and many have said that I am skilled and very knowledgeable. The humble person in me says “thank you very much”, but I realize that there is always something new to learn. Especially with the constantly changing of the tides when it comes to technology. But it keeps me busy and I like being busy. J

At any rate, those of you who were in my session, here is a copy of my slide deck as promised. Please keep in touch and I look forward to the next opportunity that I have to present to you and the rest of the SQL Server community.

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, BIDN Blogs, BIDN Articles, SQLServerCentral or SQLServerPedia.

 sqlbigeek - brian k mcdonald

Brian K. McDonald, MCDBA, MCSD
Business Intelligence Consultant

 

Dataset with Text or Stored Procedure

Sunday, October 2nd, 2011

As most of you already know, Reporting Services reports make use of Datasets to get data. These Datasets can get the data from Text, Table (rarely used) or a Stored Procedure. Which query type to use has been a topic on many forum boards and I’ve had this question pop up several times over the years during presentations and general discussion. Sometimes asked “Which one is better to use; a stored procedure or text?” or “What is considered best practice…?” With that being said, I think it is long overdue that I write a blog about it to have as a reference to provide to others (not “the others” that were on LOST).

When these questions are brought up to me, I start with the general “it depends” answer. It depends on what perspective you are looking at when asking which is better. Best practice would say that you should put your queries as close to the data as possible (especially calculations). When you create a stored procedure, it gets compiled and its execution plan is available for re-use (most of the time). This can increase performance and make a commonly used query easier to maintain across many reports. For example, let’s say that you have 20 reports across your organization that uses a parameter for State. Each report could have a Dataset containing a Text query type that returns all of the StateID and StateName columns. When the dataset needs to be changed, you would need to change it in all 20 reports. However, if you use a stored procedure, you would only need to update that one stored procedure and you’re done! So from this perspective, I would (and do) use a stored procedure.

However, from the maintenance perspective, if you are making many updates to your reports and underlying stored procedures, it makes it more difficult to maintain the separate objects. When you deploy a report containing one dataset using a stored procedure, two objects need to be deployed independently of one another (report definition to RS Server and stored procedure to db containing the data). In the “real” world, many reports contain more than one dataset. As such, when moving reports from one environment to another you’ll, want to script out the database objects that need to be deployed and deploy it along with the report. This makes the deployment a little more manageable. It can be a nuisance, but more often than not, it outweighs having inline text at the report level.

So, with all that, the only real good thing about using the query type of Text is that maintaining the report becomes easier. Also, creating reports during demonstrations is easier when you copy and paste a query into the Text box too or using the Query Designer to build a query out. However, you can use the graphic designer in SSMS as well. J

I hope that you have enjoyed this blog and if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, BIDN Blogs, BIDN Articles, SQLServerCentral or SQLServerPedia.

sqlbigeek, brian k mcdonald

Brian K. McDonald, MCDBA, MCSD
Business Intelligence Consultant

SQL Saturday 85 Follow Up

Sunday, October 2nd, 2011

Last weekend I travelled down to SQL Saturday 85 in Orlando, FL. Like all of the other events that I’ve presented at, this event was great. The last I heard, there were nearly 300 attendees and it seemed that all were very pleased with the event. Check-in went smoothly especially with the pre-checkin documents that you could print and bring to the event. Lunch was very good. Most of the presenters put their SQL Saturday Apron’s on and dished out the grub. Then the talks… What is there to say about the talks from the caliber of people giving back to the community by talking about something they know?

If you were in my session, you could probably tell how passionate I am about Business Intelligence and IT in general. I’ve been doing it a long time and many have said that I am skilled and very knowledgeable. The humble person in me says “thank you very much”, but I realize that there is always something new to learn. Especially with the constantly changing of the tides when it comes to technology. But it keeps me busy and I like being busy. J

At any rate, those of you who were in my session, here is a copy of my slide deck as promised. Please keep in touch and I look forward to the next opportunity that I have to present to you and the rest of the SQL Server community.

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, BIDN Blogs, BIDN Articles, SQLServerCentral or SQLServerPedia.

 sqlbigeek - brian k mcdonald

Brian K. McDonald, MCDBA, MCSD
Business Intelligence Consultant

 

Dataset with Text or Stored Procedure

Sunday, October 2nd, 2011

As most of you already know, Reporting Services reports make use of Datasets to get data. These Datasets can get the data from Text, Table (rarely used) or a Stored Procedure. Which query type to use has been a topic on many forum boards and I’ve had this question pop up several times over the years during presentations and general discussion. Sometimes asked “Which one is better to use; a stored procedure or text?” or “What is considered best practice…?” With that being said, I think it is long overdue that I write a blog about it to have as a reference to provide to others (not “the others” that were on LOST).

When these questions are brought up to me, I start with the general “it depends” answer. It depends on what perspective you are looking at when asking which is better. Best practice would say that you should put your queries as close to the data as possible (especially calculations). When you create a stored procedure, it gets compiled and its execution plan is available for re-use (most of the time). This can increase performance and make a commonly used query easier to maintain across many reports. For example, let’s say that you have 20 reports across your organization that uses a parameter for State. Each report could have a Dataset containing a Text query type that returns all of the StateID and StateName columns. When the dataset needs to be changed, you would need to change it in all 20 reports. However, if you use a stored procedure, you would only need to update that one stored procedure and you’re done! So from this perspective, I would (and do) use a stored procedure.

However, from the maintenance perspective, if you are making many updates to your reports and underlying stored procedures, it makes it more difficult to maintain the separate objects. When you deploy a report containing one dataset using a stored procedure, two objects need to be deployed independently of one another (report definition to RS Server and stored procedure to db containing the data). In the “real” world, many reports contain more than one dataset. As such, when moving reports from one environment to another you’ll, want to script out the database objects that need to be deployed and deploy it along with the report. This makes the deployment a little more manageable. It can be a nuisance, but more often than not, it outweighs having inline text at the report level.

So, with all that, the only real good thing about using the query type of Text is that maintaining the report becomes easier. Also, creating reports during demonstrations is easier when you copy and paste a query into the Text box too or using the Query Designer to build a query out. However, you can use the graphic designer in SSMS as well. J

I hope that you have enjoyed this blog and if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, BIDN Blogs, BIDN Articles, SQLServerCentral or SQLServerPedia.

sqlbigeek, brian k mcdonald

Brian K. McDonald, MCDBA, MCSD
Business Intelligence Consultant

SQL Saturday 85 – Orlando

Monday, September 19th, 2011

SQL Saturday

Grab your computer and get registered for SQL Saturday 85 in Orlando. If you’re new to the SQL world and have never heard of SQL Saturday, it is a free event put on by the SQL community…for the SQL community… This is an opportunity to learn new things and brush up on some of those less frequently used. Shawn McGeehee and others have worked very hard to make this a really great event, so click on one of the links below and register.

At this event, I will be giving a talk at 4PM on Reporting Services. It is a session designed to give you an overview of what you need to know to get up and running on Reporting Services in 60 minutes. I cover a ton of content in a very short time, but this has proven to be what many have told me… “it was the best session that I attended”. It is always jammed pack, so please arrive early. And since it is the last one of the day, I will have even more time to answer questions afterwards.

For more information, please visit SQLSaturday.com. I’d love for you to attend my session, but there are so many good ones to choose from. If you attend and have read this blog, please come to me and introduce yourself.

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, SQLServerCentral or SQLServerPedia.

sqlbigeek brian k mcdonald

 

 

SQL Saturday 85 – Orlando

Monday, September 19th, 2011

SQL Saturday

Grab your computer and get registered for SQL Saturday 85 in Orlando. If you’re new to the SQL world and have never heard of SQL Saturday, it is a free event put on by the SQL community…for the SQL community… This is an opportunity to learn new things and brush up on some of those less frequently used. Shawn McGeehee and others have worked very hard to make this a really great event, so click on one of the links below and register.

At this event, I will be giving a talk at 4PM on Reporting Services. It is a session designed to give you an overview of what you need to know to get up and running on Reporting Services in 60 minutes. I cover a ton of content in a very short time, but this has proven to be what many have told me… “it was the best session that I attended”. It is always jammed pack, so please arrive early. And since it is the last one of the day, I will have even more time to answer questions afterwards.

For more information, please visit SQLSaturday.com. I’d love for you to attend my session, but there are so many good ones to choose from. If you attend and have read this blog, please come to me and introduce yourself.

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, SQLServerCentral or SQLServerPedia.

sqlbigeek brian k mcdonald

 

 

Task Factory’s Surrogate Key Transform

Saturday, September 3rd, 2011

Task Factory is a software product created by Pragmatic Works. It provides many custom SSIS components which help developers creating SSIS packages become more efficient. And as we all know, when we are more efficient, we are more productive. In this nugget, I’m going to show you how to use the Surrogate Key Transform to generate a new surrogate key while in the data flow.

Here are the key features and details from PragmaticWorks.com about this task:

  • Adds an identifier column to a data flow used to uniquely identify a row. This is useful if your data source does not contain an identifier or you simply want to add a row counter to your data flow.
  • Allows the use of a variable to determine seed and increment

Check out this quick video to find out more.

More Videos in this Series:

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, SQLServerCentral or SQLServerPedia.

 sqlbigeek brian k mcdonald

Task Factory’s Secure FTP Task

Saturday, September 3rd, 2011

Task Factory is a software product created by Pragmatic Works. It provides many custom SSIS components which help developers creating SSIS packages become more efficient. And as we all know, when we are more efficient, we are more productive. In this nugget, I’m going to show you how to use the SFTP Task to securely perform various file transfer tasks such as download or upload a file to a remote server. You can also do things like download a complete directory, remove files and create directories, just to name a few.

Here are the key features and details from PragmaticWorks.com about this task:

Brings encrypted security to FTP within SSIS. Many companies transmit files using FTP as a transmission method for highly sensitive files. The Task Factory Secure FTP Task will allow you to transmit files over most common secure channels to your partners safely.

  • Used to interact with a secure ftp site
  • Supports SSH, Implicit SFTP and Explicit SFTP
  • Supports HTTP, SOCKS4, SOCKS4a and SOCKS5 proxies
  • Supports all actions provided by native FTP task

Check out this quick video to find out more.

More Videos in this Series:

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, SQLServerCentral or SQLServerPedia.

sqlbigeek brian k mcdonald

 

Task Factory: Email Source and Delete Email Task

Saturday, September 3rd, 2011

Task Factory is a software product created by Pragmatic Works. It provides many custom SSIS components which help developers creating SSIS packages become more efficient. And as we all know, when we are more efficient, we are more productive. In this nugget, I’m going to show you how to use the Email Source and Delete Email task to search through and remove emails from an email server.

Here are the key features and details from PragmaticWorks.com about this task:

  • Reads email from a mailbox into a data flow
  • Supports IMAP/POP3
  • Support most email providers (including GMAIL)
  • There is full support for filtering messages based on sender, message to, subject, date received, body and priority.

Check out this quick video to find out more.

More Videos in this Series:

And if you don’t already, please be sure to follow me on twitter at @briankmcdonald. Also note that you can subscribe to an RSS feed of my blogs or find me on LinkedIn, SQLBIGeek, SQLServerCentral or SQLServerPedia.

sqlbigeek brian k mcdonald