Unresolved reference in SSDT using old SQL Server system views

Issue

if you’re developing databases in SSDT, like you should, you’re probably getting a lot of build warnings.
One of the warnings you’ll see the most often is the “unresolved reference”.
Usually you solve these by adding either the master, the msdb or some application database as a database reference.
This post is about a warning you might get when out of habit (or, if like me, you didn’t know any better yet) you’re using old system views like sys.sysprocesses. You expect it to work but it simply doesn’t…

SQL71502: Procedure has an unresolved references to object sys.sysprocesses

Even after you try add the master and msdb databases as references you’ll notice that you’ll still see “SQL71502: Procedure has an unresolved references to object sys.sysprocesses”.

 

Solution

The view sys.sysprocesses and several other system views only exist for backwards compatibility but they should still work. At least for now…
So what’s going on and how do we fix this?

As it turns out, there seem to be a couple of possibilities to fix this issue.

  1. You should be in master database context as the documentation notes.
    This means you need to prefix with the relevant database as in: master.sys.sysprocesses
  2. Rename sys.sysprocesses to dbo.sysprocesses
    Gert Drapers provided this solution on the msdn SSDT forum back in 2013 and it still works (at least for SQL Server 2014 with SSDT 14.0.61021.0)
  3. You might want to rewrite your specific query to use the new and relevant tables/views. This ensures your code won’t break in the future. Especially since you’re using a view that’s included for pre-SQL Server 2000 backwards compatibility.
    Refer to this mapping of system tables to system views in the documentation to help you rewrite your query.

The 3rd solution has my personal preference, as it seems to be the cleanest. But it does mean you’ll need to take a bit more time to rewrite and test your query.

What do you do when you come across this issue?

SQL Server 2017 Machine Learning Services – Offline Installer Issue

Situation

You’re trying to install SQL Server 2017 Machine Learning Services onto an existing SQL Server 2017 installation.
You select the checkboxes for R en Python because that’s how you roll.
And off you go to the next screens!

Issue

That’s when you remember it… Your server isn’t connected to the internet!
Pretty normal, but in your enthusiasm you completely forgot that SQL Server needs to download some binaries for the R and Python components you so desperately want on your precious machine!

Luckily, the installer comes to your rescue and shows you where to download those binaries it needs.
Turns out however… This link only is for one R component and the installer won’t let you pass to the next screen!

Solution

Microsoft has a complete list of all possible components you could ever want to install while offline. From SQL Server 2016 RTM, over to SQL Server 2017 CTP 1 and up to SQL Server 2017 CU 1.

You can find the full list over at docs.microsoft.com: https://docs.microsoft.com/en-us/sql/advanced-analytics/r/installing-ml-components-without-internet-access

Hopefully, next time you’re installing ML Services, this will save you some time searching for why that “Next” button won’t become active.

 

SQL Saturday 642 – Sofia

I was lucky enough to get selected as one of the speakers for SQL Saturday 642 in Sofia this year.
Let’s do a quick review of my session and some sessions I visited.

Enabling Citizen Data Science with Microsoft

As a speaker you’re lucky enough to teach people what you know and experienced but also to get feedback from people in your session.
For the people who haven’t seen or heard my session before and who can’t make any sense from the abstract, I’ll slowly be blogging my entire session over the coming weeks. The very short version is: that while data science has become somewhat of a buzz word and a lot of people suddenly want that title. As BI Developers, Analysts, etc. it often is hard to know where to start. I guide you Microsoft’s 3 month long self-paced Data Science course, which covers theory and practice. And I cover the tools you need to get started.

I included the new Azure Machine Learning Services in my slides. Mainly because it’s new and actually very useful.
And one of the things I learned from my audience is that Microsoft’s announcement of these services is actually a bit confusing for people who are getting started. They now get the impression that this is something they NEED. While incredibly useful, when starting out it’s more important to get the basics right instead of trying to perfect the entire lifecycle.


Other very popular sessions were the “Database Continuous Delivery on the Microsoft Platform” by Gavin Campbell (blog | twitter) and “PowerBI for Rookies” by Miroslav Dimitrov.

Gavin Campbell talked about the theory, practice and different parts that make up a Continuous Deployment pipeline. From dacpac’s to version control to testing, building and onto automatically releasing your database.
Basically a must see session for everyone who’s developing databases.

Miroslav Dimitrov guided his huge audience through everything anyone would need to get started with Power BI.
From getting data, to creating a report and publishing a dashboard. Beyond that he talked about some security aspects and cool features like for example QuickInsights and publishing to the web.


Apart from these sessions there of course was a lot of food and enough drinks to be had by all the speakers who gathered on friday and saturday evening.  For me those tend to be the most memorable of an entire event because there’s always people at the table that I look up to.
This time I had the honor of sitting next to Dejan Sarka (blog | twitter) who’s advanced sessions at conferences and even pluralsight courses will teach something to even the smartest people (but also give them a headache because of the difficulty).

Lastly there’s the non-technical things I learn from people and speaking during dinner or the conference itself.

 

So thank you to the entire SQL Saturday Sofia team for organizing this great event and ensuring everyone had a great time.
For everyone who hasn’t attended one of these yet, start doing it! SQL Saturday’s, other conferences and user group meetings both virtual and real life are a good way to learn more and to get to know new people.

 

Microsoft Professional Program – Data Science

Last year, from oktober 2016 up to january 2017, I participated in Microsoft’s Professional Program, specifically the Data Science track.
It was only the 1st public iteration of the program but back then it already felt like a mature course.
This probably had to do with the fact that there had already been a private run of the course in the months before.
David Eldersveld (twitter | blog) was one of the participants in that original run and he gives you a high level overview on his blog.

In this post I’ll be going into a bit more detail and explain how I experienced the program.
In short, there was joy and there were tears.

Read on for the full story!

Read more

I’m attending and presenting at… ALL THE EVENTS!

This year I’ve already presented at more events than I dreamt off at the start of the year (5).
And the invites keep coming in! (5 more!)
This is going to be a long read, a punishment from me to me because I slacked off in blogging in the past months.

So apart from being bored, there’s 2 reasons why you would want to read this post.
1) Interest in, but some fear of, attending and presenting at conferences, user group and community events in general.
2) You’re me from the future and you’re wondering about that amazement and the exciting feeling the young Jan had about these first events. You’re wondering about what fears you overcame and you want to look back at how it all started.

Expect to find the following:

  • UK Power BI Summit (2017/02/17)
  • Denver SQL Server User Group (2017/03/17)
  • Battle of the Beards (2017/03/29)
  • SQL Saturday Israel (2017/04/26)
  • Belgian Information Worked User Group (2017/05/09)
  • in short: 5 more events to find me at before the end of june!

So whichever reason you have, come on in and start reading!

Read more

Rubbing DevOps on your Database

DLM Lifecycle

I’ve had quite a busy year and one of the things I’ve done was attend a 3 day Database Lifecycle Management (DLM) training.
If you’re into DevOps, Continuous Integration (CI) , Continuous Delivery or Deployment (CD) or you’re just automating as much as possible, then it’s very likely you’ll run into some challenges regarding your databases.

For most people, overcoming these challenges cost a lot of time.
But even before you can spend a lot of time overcoming your challenges, you’ll notice that there are a ton of tools out there that can help you.
So you’ll first have to pick the tools you’re going to use and then you need to learn how to use them.

This brings us back to the training I got to attend thanks to my employer Ordina.
More specifically, they were 3 workshops lead by Alex Yates (blog | twitter) from DLM Consultants (website | twitter).
In total they covered the 3 different main parts of the Database Lifecycle Management process.

  • Database Source Control
  • Database Continuous Integration
  • Database Release Management

Read on for my experience with these full-day online workshops.

Read more

Back from a break in 2016

What a year!
2016 just flew by and I almost missed it!
Let’s recap what I think are some highlights of the year:

Community

  • SQL Server 2016
    We got a ton of Community Tech Preview (CTP) versions and then launch of the latest SQL Server version
  • Power BI became even more incredible than before
    And everyone is loving it!
  • Azure Data Factory became a lot easier to use
    But it seems to be getting no love yet
  • Azure Machine Learning got some incredible new features
    Opening a lot of possibilities which I’m not seeing covered by anyone yet!
  • I presented my first webinar
    And luckily there’s room for improvement 🙂
  • The SQL Community Slack channel
    Which is a great resource to get in touch with other community members
  • PASS Summit 2016, Ignite 2016 and ML & DS Summit 2016 all came and went. I still haven’t watched everything I wanted to see from these great events.

Personal

  • I made a bazillion draft posts for this blog.
    And I’m going to start completing and posting them.
  • I started writing a book.
    And that’s way harder then I previously imagined.
  • I taught a couple of SQL Server and BI related classes to 2 groups of starters at Ordina, the company I work at.
  • Teaching others helps me get new insights as well.
    Mainly in how I bring some types of content to particular audiences and how I can help others grow.
  • I’ve started participating in a couple of user groups
    Most notably: satRdays and as readers of my blog already know: Virtual Global Power BI User Group
  • I participated in the new SQL Server beta exams
    They were not at all comparable to the ones for SQL 2012/2014. In my opinion they were much harder but also less related to real world things. I’m sure they will change a lot before going live but a blog post about them will follow soon.
  • I’ve started the MPP courses from academy.microsoft.com after a couple of tweets with David Eldersveld (blog | twitter).
    He’s also made a great post about it, go read it.

What’s next?

This blog and everything else community related are things that always keep going forward.
With so much new things appearing, my first instinct is to play around with those things before posting anything about it.
However, I’ve learnt that sharing while you learn is something most people seem to appreciate. People tend to love following the growing process. I can only guess that it helps them measure their own progress.

I’m also sure that a lot more cool stuff will be happening in the community in the coming months and years.
Until then, let’s try together to keep up with all things data related.
So if you have questions or want me to blog about something in particular, please contact me via the comments or on twitter!

This is my second post to catch up on a year of saving drafts, watch out for more.

Presenting a webinar, not the same as a conference

Last saturday Back in January, I presented my first webinar for the Global Power BI usergroup.
It was a redelivery of the Personal BI to Personal Data Science session I’ve already given twice together with my colleague Kimberly Hermans (twitter).
Although there was no real negative feedback and even some positive feedback in private, I don’t think I did great.

I approached the webinar the same way as I do a regular presentation.
And boy oh boy, was I wrong to do it this way…

There’s all kinds of different and extra things to take into account compared to an in-person conference or usergroup presentation.

  • The software you’re using
    We used Google+ Hangouts and while I tried it out before the webinar, I didn’t prepare how I would be taking questions. That could’ve gone a lot better.
  • The microphone you use
    The microphone I used was the one that came with my phone. The quality wasn’t the best, especially combined with the room I was in.
  • The room you’re in
    Using a cheap microphone tends to be OK. But in the wrong room you’ll get a lot of echo or environment noise.
  • No or very limited interaction with your audience
    This one struck me the worst. I couldn’t interact with or read the audience which made me unusually nervous.

On top of that, because of conflicting schedules I had to present alone this time.
I thought I would be OK as I knew most of the data science stuff on a basic level.
But it also means that all the interaction and the dynamic that previously existed in the presentation was gone. No jokes, no natural tempo changes, no interaction between presenters.
In my opinion this was the main killer of the webinar.

What’s next?

UserGroup

The Virtual Global Power BI User Group is still organising monthly webinars. You can join or present yourself as well.
Or just participate in the usergroup via different channels like TwitterFacebook, LinkedIn and our YouTube channel.

Personal

I’m embarking on a new webinar journey as well.
More news will follow soon.

 

Power BI and R – Part 3 (Getting started)

This entry is part 3 of 3 in the series Power BI and R

In this post we’ll look at some simple examples of how to use R in Power BI.
While going through these examples, we’ll have a look at what is already possible in this preview version and what is not possible.
We’ll do this by slowly examples from scratch so you can follow or rebuild the examples yourself.
I’ll keep the technical explanations to a minimum as there are already a ton of books and courses filled with that.

So if you’re seeking deep knowledge of the inner workings of R, this post is going to disappoint you.
However, if you’re looking to keep it simple and just get started building cool or useful visualizations in R to explore your data, just keep reading!

In case you missed the previous posts:

In part 1 of this series, I gave you a couple of reasons to start using R for visualizations in Power BI.
In part 2 of this series, I gave you remarks on the R integration. You might’ve caugtht a glimpse of what is possible if you stepped outside of the lines that Microsoft drew. And I showed you an ugly error you can receive because of  decimal symbol setting in your OS.

Read more

Power BI and R – Part 2 (Remarks and errors)

This entry is part 2 of 3 in the series Power BI and R

In part 1 of this series, I gave you a couple of reasons to start using R for visualizations in Power BI.

In this part I’ll tell you about the things I discovered and the problems that I ran into in this preview version.

Please note that the remarks below count for the december 2015 version of Power BI Desktop.
R script visuals is still a preview, things might change in later versions.

Read more

%d bloggers like this: