Skip to main content

Posts

SSRS Chart Scaling issue

I had a tough problem to figure out yesterday and no amount of hunting on the internet revealed a solution so here it is: The problem was that the range chart I was using do display data had a time bar on the x axis. The line on the chart did not line up with the time on the x axis. Example below. Looking at Italy notice a tooltip of 20:07:47 but the x axis is lined up almost exactly on 21:00:00.  The solution turned out to be on how the chart series is setup. Both the Vertical and Horizontal axis were set to primary. Changing the Vertical axis to secondary solved the problem. Notice now how Italy lines up correctly now. I hope this helps you!
Recent posts

Interviewing for a DBA/SQL Developer position

I have interviewed countless people for positions in my company. Here are a few pointers. Applies to any position: Don't be negative about your current boss. I will be thinking you cannot handle authority. Don't be "over the top" such as pounding the table, telling lots of great jokes, etc. Pounding the table tells me you overreact and telling lots of great jokes tells me you would be a great fishing buddy...but not a great employee. Don't apply for a job you are not qualified for. This can be embarrassing for everyone in the room. Dress appropriately for the interview. Be on time. Bring extra copies of your resume. Know what is on your resume. If someone prepared it for you...make sure you read it over and can speak to everything on the resume. Make eye contact If you don't know the answer say, "I don't know". DBA/SQL Developer questions. I do very technical interviews. Here are some of my favorite questions: How do you keep ...

SSIS and multiple data flows

Just yesterday someone asked: "If you have a large data set in SSIS 2005 to process. Which way is faster to process the dataset in one data flow or if you can segregate the data flow in to 2 or 3 branches?" What you are basically talking about is multi-threading. SQL 2008 does a much better job of multi-threading than 2005. You really need to read this so that you understand what 2005 is really doing when you “think” you are spinning off multiple threads. If you can bulk insert into an empty table for fast load then you might be better off taking this route with one data flow. The gains there are tremendous. Make sure you understand what fast load means and the requirements before you check the box and assume you will be doing fast loads. In short there are possibilities that can speed up your load. Having plenty of CPU, IO, and memory (basically no hardware bottlenecks) is essential to see any performance gains with multi-threading.

Why embedded sql should not be in your applications

So very recently our team had a lunch meeting presentation as we sometimes do where a person will give a presentation on a topic. This day Charlie gave a presentation on LINQ to entities. You can see the camtasia video here . LINQ stands for Language Integrated Query. LINQ is very powerful and I like many things it offers. After meeting discussion turned to why developers write their own queries inside their applications (a.k.a. embedded sql). Developers and DBA's will clash over why you should/should not put sql in the application. The developers point of view: I don't need a DBA or SQL Developer to complete my application. I just need a connection to the database and I'm golden. Writing stored procedures and waiting for the DBA slows me down. I have deadlines! Understanding the program is much easier if all the code is in one place and not spread to the sql server. The DBA's point of view: SQL in the application requires the connection to have direct access to every t...

DBA 101 - Troubleshooting a slow server

User groups, special classes, informal meetings, etc and this topic comes up more often than not. What is really surprising is the tentative answers that are given. Simply stated people want to know how to troubleshoot a problem. Isn't there a basic set of steps, bullet points, something to help me troubleshoot any kind of problem on my server? Instead of beating around the bush and saying "it depends on the problem" I will attempt to tackle this head on. New DBA's or accidental DBA's may not have all the knowledge that is needed to identify and fix a problem. However, the knowledge is simple enough to explain and fumble through your first few times. What you need to know: Activity Monitor DMV's (Dynamic Management Views) Query Execution Plan T-Sql knowledge Performance Monitor (a.k.a. PerfMon) Windows event viewer If you don't know these things not to worry. We will go over them, what they do, and how you should use them. Look for more on this soon!

DBA 101 - Connecting to an unresponsive SQL Server

I will attempt, over the course of many blogs, to tackle troubleshooting for a beginning to intermediate DBA. Troubleshooting is like an octopus with a hundred arms. There is no silver bullet but at least I can give you some tools for your belt to help determine the next steps in troubleshooting many common problems that you will see. So where do we begin? I don't know. Let's dive in and see where we end up. Problem - Nobody can connect to the SQL Server and it is not responding to any requests. Wow this seems like an impossible problem and is in reality two problems. Lets address the most critical problem which is you cannot even address why the SQL Server isn't responding to requests because nobody can connect to it to see what is going on. A weak solution - Often times an inexperienced DBA or what is often called an "accidental" DBA would pull the plug on the server, wait ten seconds, and then power it back on. Now this isn't the worst possible solution.....

SQL Server ETL for Data Lineage

What is data lineage? Ok let us suppose you built a wonderful database with loads of data coming from source files from your vendors, your own AS400, and different departments of your own organization. All of this data has been imported into 200 tables in this database producing a plethera of information that is used for reporting purposes. One day a department head comes to you and says, "I think this number here on this report is wrong. Where did you get it from?" Do you escort that person to the computer room and show him/her your server? No, I didn't think so. So how do you come up with where the information came from? Likely you find a data load expert in your IT department and have him/her spend the next several minutes/hours/days rummaging through stored procedures, ssis packages, dts packages, custom applications, etc trying to find this information. However, if you had this: you could simply pull up the history of how that data came to be loaded and point. How us...