Sam Vanga's SQL
Workspace database server was not found
You might constantly see a warning message that appears like the one below when creating Analysis Services Tabular projects. It basically says, workspace database server ‘ServerName’ was not found.
You’ll have to change this setting from the model properties. The server should be an Analysis Services Server running in Tabular… Read more
0 comments, 298 reads
Posted in Sam Vanga's SQL on 8 May 2012
How to execute a package from another package?
I hear you. You’ll use the Execute Package Task. This mechanism of executing one package from another is popularly knows as Parent Child paradigm. Let me tell you, this isn’t new in 2012. There are, however, a few changes to the Execute Package Task. Let’s take a look.
Demoland!
1 comments, 779 reads
Posted in Sam Vanga's SQL on 1 May 2012
Change Package Properties Using Parameters–SSIS 2012
In DTS, changing package properties was close to impossible (the less we talk about DTS, the better). Package configurations introduced in 2005 solved most of the problems. In 2012, SQL Server Integration Services introduces parameters to make this process even easier. Parameters allow you to change package properties without the… Read more
5 comments, 2,468 reads
Posted in Sam Vanga's SQL on 24 April 2012
Do You Know These Free Events?
I frequently attend a few online training events that greatly help me learn new things. Thought I would share, if may be you are interested too. These are all cool people sharing information for free to the community.
- PragmaticWorks Webinars. Training events on the T’s – Tuesday’s…
2 comments, 262 reads
Posted in Sam Vanga's SQL on 23 April 2012
Why Isn’t There A Deployment Server Edition For SSIS Projects?
Andy Leonard blogged about a gotcha when creating SSIS projects using SSDT yesterday. He showed that you can use any component in SSDT whether or not your SQL Server supports that component. For example, you can create a package with Fuzzy Lookup and deploy to a server running Business Intelligence… Read more
0 comments, 485 reads
Posted in Sam Vanga's SQL on 19 April 2012
Execute T-SQL Statement Task
I spotted a new task in SSIS 2012 – Execute T-SQL Statement Task. It executes T-SQL statements, only Transact-SQL statements against SQL Server databases. Cool, but don’t get too excited. Why? Because you can neither parameterize the SQL nor save the results to a variable.
The task editor looks… Read more
3 comments, 364 reads
Posted in Sam Vanga's SQL on 17 April 2012
Simple Tips To Speed Up Your SSIS Data Flow
There are a few design choices that can make your SSIS packages run super fast when loading data from table A to table B.
SQL Command at Source
OLE DB source editor allows you to choose either a table or a view from a drop down if data access mode… Read more
4 comments, 1,262 reads
Posted in Sam Vanga's SQL on 10 April 2012
SQL Roundup – 03/16-2012
Howdy! I was flying last week, and for the first time i sat facing a flight attendant. You don’t actually sit face to face with anybody in a flight, because, you know all the seat rows are facing in only one direction. But attendants sit in the opposite direction. That… Read more
0 comments, 316 reads
Posted in Sam Vanga's SQL on 16 March 2012
Distinct Count in Analysis Services
Business users are often interested in finding distinct counts in addition to other aggregations. They may want to know the number of distinct customers calling customer support, the number of distinct employees selling business, or the number of distinct products that are being sold. Note the difference between distinct count… Read more
0 comments, 296 reads
Posted in Sam Vanga's SQL on 14 March 2012
SQL Roundup – 03/09/2012
Welcome to another week of SQL Roundup. Just in case you missed, SQL Server 2012 was released this week and you can download the evaluation edition here.
Clever and great improvisation. Create tag cloud style reports using SSRS. (Jason Thomas).
Jen McCown summarizes the agony caused during the… Read more
0 comments, 295 reads
Posted in Sam Vanga's SQL on 9 March 2012
SSRS NoRows – Display a custom message when there is no data
In this short post, I’ll discuss NoRowsMessage property. When there is no data for a data region, the message you specify for the NoRowsMessage property will displayed to the user instead of a blank report.
I created a report with a tablix and configured the NOROWS property from the tablix… Read more
2 comments, 665 reads
Posted in Sam Vanga's SQL on 6 March 2012
Introducing SQL Roundup
Following in the foot steps of John Sansom (b|t), I’m going to post a roundup of links from other blogs every Friday. I’ll call this SQL Roundup. John calls his “Something for the Weekend“.
Each Roundup will have no more than 10 links.… Read more
0 comments, 380 reads
Posted in Sam Vanga's SQL on 2 March 2012
Write a Variable To a File Using SSIS
Problem
I’ve a SSIS package. When it fails execution, I want to write a custom message including the package name and error description to a text file.
Solution
One way to accomplish this is to declare a variable, populate it with the message you want, and write it’s value to… Read more
1 comments, 1,254 reads
Posted in Sam Vanga's SQL on 29 February 2012
Creating Your First SSAS 2012 Tabular Project
No matter how simple it is, new things come with some confusion; at least until you get used to it. Analysis Services 2012 Tabular is no different. This post will look at steps to create your first Tabular project.
Let’s start with firing up SQL Server Data Tools located under… Read more
0 comments, 1,383 reads
Posted in Sam Vanga's SQL on 21 February 2012
Be careful with two digit years
I recently had a scary conversation with a user, which can be broken down to:
User: Why would the data have customers with a birth date of MM/DD/2020?
Me: What are you talking about? Lemme take a look.
Me again, this time with a changed voice: Umm,… Read more
0 comments, 330 reads
Posted in Sam Vanga's SQL on 14 February 2012
LAST_VALUE() Analytic Function–SQL Server 2012
Earlier, i discussed FIRST_VALUE() function. FIRST_VALUE() returns the first value from an ordered set of records. Similarly LAST_VALUE() returns the last value for an ordered result set, but you are in for a bit of a surprise if you aren’t familiar with the enhancements to the SQL windows functions. Read more
0 comments, 834 reads
Posted in Sam Vanga's SQL on 7 February 2012
Data Labels, Axis Interval, Rotate Label Text: SSRS Nugget
Charts present summary data in a visually appealing format. Following is a chart for sales over month:
Before
I frequently use a few options along with charts to get most out of them.
Show data labels:
It’ll be easier for the users to quickly read, if the chart shows… Read more
2 comments, 1,455 reads
Posted in Sam Vanga's SQL on 31 January 2012
Read contents of a file to variable – SSIS
Sometimes you will find the need to import a file to a variable using SSIS. In this post, I’ll use Script Task to read contents of a flat file into a variable.
I’ve created a file called ‘myfile.txt’ with some random text. I’ll configure script task to read this file… Read more
7 comments, 839 reads
Posted in Sam Vanga's SQL on 24 January 2012
#meme15 – Use. Twitter. Why?
Should an average Jane or Joe professional use twitter?
Yes.
Why?
Because, I’m using it.
Not enough reasons? <grumpy face> I knew you wouldn’t buy this.
Okay, allow me to present why you should:
Advertise.
You might be thinking, “I’m neither an author nor do i have… Read more
3 comments, 299 reads
Posted in Sam Vanga's SQL on 16 January 2012
FIRST_VALUE() Analytic Function–SQL Server 2012
Given a customer table:
CREATE TABLE Customers
(CustId INT, OrderDate DATE, OrderAmount MONEY) ;
INSERT Customers VALUES
(1, ’2011-12-03′, 12500)
, (1, ’2011-10-07′, 15000)
, (1, ’2011-09-12′, 16000)
, (2, ’2011-07-11′,… Read more
3 comments, 343 reads
Posted in Sam Vanga's SQL on 10 January 2012



Subscribe to this blog