Author: way0utwest

  • Argenis Without Borders – v2

    Last year at the PASS Summit, Kristen Benzel and Argenis Fernandez put on a fundraiser to raise money for Doctors Without Borders. It was very successful, bringing over $13,000 to the charitable work this organization does.

    We had fun with it, with some great rainbow costumes that were displayed at the PASS Summit, including me.

    doctorswithoutbordersrainbow

    This year, 2015, there’s a new campaign. Once again, we’re raising money for Doctors without Borders. The goal is $20k, but we’re already close to $1,000 raised. That means that Argenis will be dressed like Ted.

    Halloween Steve

    My costume has yet to be chosen. I’m not usually a Halloween person, but in this case I’ll make an exception. The last day of the PASS Summit this year is Halloween, so I’m thinking that’s the day to

    However, I’m not sure what to commit to. Should I be a super hero? A classic horror look? What would make you donate a little to the campaign? I’m looking for a few ideas, thoughts, things that you think would bring a smile to your face, and the willingness to help raise some money for a great cause.

    Donate today and post your costume suggestions below. Feel free to see if you can come up with something that might embarrass me.

  • There Are Always Constraints

    Many of us have spent years learning about technology. I suspect that many of you might enjoy these pieces I write, but you visit SQLServerCentral for the same reason I started building it: to become better at your jobs. Many of you work regularly to improve your ability to make SQL Server perform as well as possible.

    I’m also sure many of you have had to deal with what you see as “bad decisions” from your management at some point. I’m sure many of you have felt that if we did something a little differently, or spent a bit more money (or time), we could have built a better application. That may be true, though I’ve found over the years that technologists sometimes don’t make better decisions than project managers. We often have different priorities, but also different views on what success means.

    There are always constraints involved with building systems. The most successful technologists I know may gripe about constraints, but it’s a passing comment. They don’t get bogged down in the limitations that are imposed on them. They move forward, deal with the constraint, and make things happen. They get the software working or the system running.

    Like many things in life that may irritate us, and potentially hold us back, the limitations will always exist. We need to accept the lack of staff, money, time, or even technology and do the best with what’s available. It’s fine to disagree and complain, but don’t let that hold you back from making the best of the reality that you work within.

    Steve Jones

    The Voice of the DBA Podcast

    Listen to the MP3 Audio ( 1.9MB) podcast or subscribe to the feed at iTunes and LibSyn.

  • Azure SQL Database – Link User to Login

    I’m writing this post as a way to help motivate the #SQLNewBloggers out there. Read the bottom for a few notes on structuring a post.

    I created a login for an Azure SQL Database, but couldn’t log in. I would get this message, which makes perfect sense.

    2015-06-23 14_52_41-Connect to Database Engine

    Just like an on-premises instance, I need to link a user to the login for access. However, unlike an on-premises SQL Server, I can’t willy-nilly change databases. If I do this:

    Use SQLServerCentral GO

    I’ll get this message.

    2015-06-23 15_00_31-SQLQuery3.sql - mhknbn2kdz.database.windows.net,1433.SQLServerCentral (jt (58))_

    I can’t switch, I need to reconnect. In this case, I use the same login (an admin level) and reconnect to a different database. This certainly can make scripts more cumbersome, and imply that your work, whether through T-SQL or PoSh, needs to include the connection strings for the correct database. In fact, I might recommend PoSh over SSMS for this reason.

    Once I’ve connected, I can use standard commands. In this case, I’ll use this code:

    — add user to SQLServerCentral database — connect to database CREATE USER sscdev FROM LOGIN sscdev; — add a role for ddl admin EXEC sp_addrolemember ‘db_ddladmin‘, ‘sscdev‘;

    Now when I click connect with my user, I see this:

    2015-06-23 15_02_22-SQLQuery4.sql - mhknbn2kdz.database.windows.net,1433.sqlservercentral (sscdev (5

    Just what I need.

    SQLNewBlogger

    This was a second post as part of the previous one. I was adding a user and login as part of a bit of work and when it didn’t work, I captured screen shots and split this part from the last one.

    Five minutes writing this one, probably no more than five minutes slower in running the code to capture the images.

    You can do this.

    References

  • Presenting Data

    Many of us that develop or manage database systems are concerned with the actual bits and bytes that compromise data. However our clients and customers are more interested in the information, in gaining knowledge from the numbers, strings, and dates that are kept in our database tables.

    I really think that one of those things that can truly allow a developer or DBA to show their employer they are valuable to the organization. Employees prove this when they can retrieve information in a way that clients find valuable. Not that we, as the technical people value, but in the ways that clients find valuable.

    This doesn’t mean you need to learn PowerBI or PowerPivot or any other Power tools, but that you learn how to present the data you work with in the best way you can. Whether that’s in an SSRS report, an Excel worksheet you email around, or a complex visualization, all of these formats have one thing in common: a query. One of the best things you can do as a developer or DBA is ensure you can write efficient queries that assemble data from a variety of tables in different formats. Queries that retrieve data that can answer a question or reveal a pattern.

    Learning how to build a fancy visualization is great, but be flexible. If you get the opportunity, work with a new technology and develop some comfort, take it. However make sure that above everything else you can get the data sets to the end user. Clients can always use their own tools, but the efficiency and performance they experience will often come down to your query writing skills.

    Make sure you are constantly improving those skills.

    Steve Jones

    The Voice of the DBA Podcast

    Listen to the MP3 Audio ( 2.0MB) podcast or subscribe to the feed at iTunes and LibSyn.