(Kevin Kline) Do you do a bit of query tuning? Then check out this treasure trove of performance tuning advice!
Tag: sql server
When Parameter Sniffing Caused Deadlocks
(Michael J. Swart) Last week I was asked to troubleshoot some deadlocks in production. I was surprised to find out that parameter sniffing was one of the causes. I describe the investigation below.
Signed Integer Ranges: Why and How
(Bob Pusateri) Whether you are working in T-SQL, Oracle, MySQL, C#, or Java, the range of possible values for a signed (positive or negative) 32-bit integer is from -2^{31} or (-2,147,483,648) to (2^{31})-1 or (2,147,483,647).
SQL SERVER – Script to Find Strings with Same Characters
(Pinal Dave) One of my blog followers asked me if it is possible to check whether all the characters of a column value is same. For example if there are values like KKK and KKT, the value KKK should be the output as all characters are same.
Self-maintaining, Contiguous Effective Dates in Temporal Tables
(Dwain Camps) ‘Temporal’ tables contain facts that are valid for a period of time. When they are used for financial information they have to be very well constrained to prevent errors getting in and causing incorrect reporting. This makes them more difficult to maintain. Is it possible to have bot
Handling Added Or Missing Columns In Power Query
(Chris Webb) A recent conversation in the comments of this blog post brought up the subject of how to handle columns that have either been removed from or added to a data source in Power Query. Anyone who has worked with csv files knows that they have a nasty habit of changing format even when they
Overview of Using Analysis Services Data in the new Power BI Preview
(Melissa Coates) Welcome to part 1 of a 3-part series on using the SSAS Connector with the new Power BI Preview. This information is as of Feb 2015 and is subject to change as the Power BI Preview evolves.
Script to Drop All Orphaned SQL Server Database Users
(Percy Reyes) One important task as a DBA is to manage security in our SQL Server database server environments. Part of this task is to administer the permissions for each user in each database. Sometimes there are orphaned users (no corresponding login exists for the user) in a database and we may
Stored Procedures, Dynamic SQL and Execution Plans
(Derik Hammer) If stored procedure execution plans are cached once and then reused, what version of the execution plan is cached for stored procedures that have dynamically created queries?
Using sp_DBPermissions and sp_SrvPermissions v6.0
(Kenneth Fisher) It’s been a while since I posted an updated to usp_DBPermissions and usp_SrvPermissions. Sorry. I got lazy with my posting.
