SQL Server Pro http://sqlmag.com/rss.xml en Parsing Denormalized Strings with the STRING_SPLIT Function in SQL Server 2016 http://sqlmag.com/sql-server-2016/parsing-denormalized-strings-stringsplit-function-sql-server-2016 <div class="node-body article-body">There is a new string parsing function available to you if you're dealing with SQL Server 2016 databases.</div> <p><a href="http://sqlmag.com/sql-server-2016/parsing-denormalized-strings-stringsplit-function-sql-server-2016" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2016/parsing-denormalized-strings-stringsplit-function-sql-server-2016#comments SQL Server 2016 comma csv delimited denormalize function parse sql server 2016 string_split Wed, 22 Mar 2017 14:39:00 +0000 34911 at http://sqlmag.com How to Compute Date and Time Difference in Parts http://sqlmag.com/sql-server/how-compute-date-and-time-difference-parts <div class="node-body article-body">Sometimes you need to use T-SQL to compute the time passed between two events whose date and time values you get as inputs. For some purposes, it’s sufficient to compute the difference as a duration in terms of some part. What’s significantly trickier is to compute the difference as a combination of parts. </div> <p><a href="http://sqlmag.com/sql-server/how-compute-date-and-time-difference-parts" target="_blank">read more</a></p> http://sqlmag.com/sql-server/how-compute-date-and-time-difference-parts#comments SQL Server date and time SQL Server sql server 2016 T-SQL Wed, 15 Mar 2017 14:14:00 +0000 34901 at http://sqlmag.com DATA TALES #12: The Case of the Code that Refused to Execute http://sqlmag.com/sql-server/data-tales-12-case-code-refused-execute-1 <div class="node-body article-body"><p><span class="s1">Over recent months the articles that I&rsquo;ve written have focussed on the database engine. I&rsquo;ve recently rolled many of the tools that I&rsquo;ve been building for working with the database engine into a set of free downloads. You&rsquo;ll find them here:&nbsp;</span></p> <p class="p2"><span class="s2"><a href="http://www.sqldownunder.com/Resources/SDUTools">http://www.sqldownunder.com/Resources/SDUTools</a></span></p></div> <p><a href="http://sqlmag.com/sql-server/data-tales-12-case-code-refused-execute-1" target="_blank">read more</a></p> http://sqlmag.com/sql-server/data-tales-12-case-code-refused-execute-1#comments SQL Server Mon, 13 Mar 2017 16:17:00 +0000 34891 at http://sqlmag.com Quickly Identify Database and File Sizing for Any SQL Server Instance http://sqlmag.com/database-administration/quickly-identify-database-and-file-sizing-any-sql-server-instance <div class="node-body article-body">I frequently find myself needing to see the sizing information for my SQL Server databases or their files. I also need to periodically check to ensure I've the right auto grow settings enabled to meet best practices when I engage with a new client. I've created a single script that does this and I want to share it with my readers.</div> <p><a href="http://sqlmag.com/database-administration/quickly-identify-database-and-file-sizing-any-sql-server-instance" target="_blank">read more</a></p> http://sqlmag.com/database-administration/quickly-identify-database-and-file-sizing-any-sql-server-instance#comments Database Administration database size file size growth setting sizing SQL Server Stored procedure Fri, 03 Mar 2017 00:41:00 +0000 34851 at http://sqlmag.com An Introduction to Docker and Containers for SQL Server Developers and DBAs http://sqlmag.com/sql-server/introduction-docker-and-containers-sql-server-developers-and-dbas <div class="field-byline"> Paul Stanton </div> <div class="node-body article-body"><p class="p1"><span class="s1">In March 2013 Soloman Hykes announced what would become known as the Docker open source project.&nbsp; &nbsp; In the months that followed there was a ground swell of adoption by the Linux community, and in the fall of 2014 Microsoft announced plans to implement containers in Windows Server 2016.&nbsp; &nbsp; WinDocks, where I am a co-founder, released an independent port of Docker&rsquo;s open source to Windows in early 2016, with a focus on first-class container support to SQL Server. &nbsp;</span></p></div> <p><a href="http://sqlmag.com/sql-server/introduction-docker-and-containers-sql-server-developers-and-dbas" target="_blank">read more</a></p> http://sqlmag.com/sql-server/introduction-docker-and-containers-sql-server-developers-and-dbas#comments SQL Server Thu, 02 Mar 2017 20:09:00 +0000 34861 at http://sqlmag.com 2017 Training Resolutions from the SQL Cruise Technical Leads http://sqlmag.com/sql-server/2017-training-resolutions-sql-cruise-technical-leads <div class="node-body article-body"><p>Granted calendars as we know them are subjective and not all cultures honor the same calendar but we are at that time of the year that is known for setting resolutions for the coming twelve months and I thought it would be an interesting exercise to see what some of the Thought Leaders in SQL Server (and the broader Microsoft Data Platform) are planning on spending time learning this year.</p></div> <p><a href="http://sqlmag.com/sql-server/2017-training-resolutions-sql-cruise-technical-leads" target="_blank">read more</a></p> http://sqlmag.com/sql-server/2017-training-resolutions-sql-cruise-technical-leads#comments SQL Server 2017 data platform Microsoft SQL Server thought leaders training recommendations Fri, 24 Feb 2017 17:39:00 +0000 34671 at http://sqlmag.com Call for Speakers for 2017 IT/Dev Connections Extended Until February 20, 2017 http://sqlmag.com/sql-server/call-speakers-2017-itdev-connections-extended-until-february-20-2017 <div class="node-body article-body"><p>The 2017 IT/Dev Connections conference is coming to San Francisco, CA&nbsp;after many years in Las Vegas, NV. This year&#39;s conference takes place October 23-26, 2017 at the Hilton Union Square in the heart of the San Francisco Financial District. As in years past there will be tracks covering:</p></div> <p><a href="http://sqlmag.com/sql-server/call-speakers-2017-itdev-connections-extended-until-february-20-2017" target="_blank">read more</a></p> http://sqlmag.com/sql-server/call-speakers-2017-itdev-connections-extended-until-february-20-2017#comments SQL Server 2017 IT/Dev Connections Call for Speakers Thu, 16 Feb 2017 19:08:00 +0000 34821 at http://sqlmag.com The Future of Managing Databases in a Hybrid IT World http://sqlmag.com/sql-server/future-managing-databases-hybrid-it-world <div class="field-byline"> Thomas LaRock, Head Geek, SolarWinds </div> <div class="node-body article-body">When you work in information technology long enough, you get to see how people react when something new comes along. Some people embrace change, even to the point of being an early adopter. Others might use a wait-and-see approach. And then there is the group of people who are afraid of change in any form. </div> <p><a href="http://sqlmag.com/sql-server/future-managing-databases-hybrid-it-world" target="_blank">read more</a></p> http://sqlmag.com/sql-server/future-managing-databases-hybrid-it-world#comments SQL Server Tue, 14 Feb 2017 04:34:00 +0000 34811 at http://sqlmag.com <p>Don&#39;t let fear of the unknown keep you from moving forward.</p> Identifying Existence of Intersections in Intervals http://sqlmag.com/sql-server/identifying-existence-intersections-intervals <div class="node-body article-body">Identifying the existence of intersections in intervals is a classic task where, given a table with a set of intervals, you need to check whether any intersections exist. This is often done to verify the validity of data that holds intervals that are not supposed to have any intersections between them. For example, when you keep history of changes to rows by maintaining multiple versions of a row, the same row is not supposed to have intersecting versions.</div> <p><a href="http://sqlmag.com/sql-server/identifying-existence-intersections-intervals" target="_blank">read more</a></p> http://sqlmag.com/sql-server/identifying-existence-intersections-intervals#comments SQL Server intersections in intervals SQL Server Wed, 08 Feb 2017 19:40:00 +0000 34771 at http://sqlmag.com Introduction to the Availability Group Dynamic Management Objects in SQL Server 2016 http://sqlmag.com/database-high-availability/introduction-availability-group-dynamic-management-objects-sql-server-201 <div class="node-body article-body"><p>Availability Groups &ndash; a hybrid of SQL Server Database Mirroring and Windows Failover Clustering &ndash; are becoming the de-facto standard for implementation of high availability solutions for Microsoft SQL Server. While the learning curve can be steep it&rsquo;s also a fairly short learning curve.</p></div> <p><a href="http://sqlmag.com/database-high-availability/introduction-availability-group-dynamic-management-objects-sql-server-201" target="_blank">read more</a></p> http://sqlmag.com/database-high-availability/introduction-availability-group-dynamic-management-objects-sql-server-201#comments Database High Availability 2016 Availability Groups DMF DMO DMV dynamic management objects dynamic management views ha/dr SQL Server Mon, 30 Jan 2017 19:45:00 +0000 34721 at http://sqlmag.com Replacement Release for SQL Server Management Studio 16.5.2 is Available http://sqlmag.com/sql-server-2016/replacement-release-sql-server-management-studio-1652-available <div class="node-body article-body">Earlier this month Microsoft released version 16.5.2 of SQL Server Management Studio. Customers identified issues with the release causing Microsoft to pull the download. The replacement is now available.</div> <p><a href="http://sqlmag.com/sql-server-2016/replacement-release-sql-server-management-studio-1652-available" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2016/replacement-release-sql-server-management-studio-1652-available#comments SQL Server 2016 16.5.2 16.5.3 Download Microsoft SQL Server Management Studio SSMS Mon, 30 Jan 2017 19:12:00 +0000 34711 at http://sqlmag.com Power Apps and Flow http://sqlmag.com/sql-server/power-apps-and-flow <div class="node-body article-body"><p>If you are looking to create an application to monitor or track a process and do not want to have to write much code, take a look at Power Apps and Flow. &nbsp;These products are designed to be able to provide a more self-service development environment as you can use templates and drop and click your way to an application which can work on the web, tablet or phone. &nbsp;</p> <p><strong>Use Cases for PowerApps</strong></p></div> <p><a href="http://sqlmag.com/sql-server/power-apps-and-flow" target="_blank">read more</a></p> http://sqlmag.com/sql-server/power-apps-and-flow#comments SQL Server Wed, 25 Jan 2017 15:48:00 +0000 34701 at http://sqlmag.com SQL Server Management Studio Version 16.5.2 Now Available for Download http://sqlmag.com/sql-server-2016/sql-server-management-studio-version-1652-now-available-download <div class="node-body article-body">The latest release from the SQL Server product group at Microsoft has just gone public and is available for download today. Read on to see what has changed.</div> <p><a href="http://sqlmag.com/sql-server-2016/sql-server-management-studio-version-1652-now-available-download" target="_blank">read more</a></p> http://sqlmag.com/sql-server-2016/sql-server-management-studio-version-1652-now-available-download#comments SQL Server 2016 16.5.2 Download SQL Server Management Studio SSMS Mon, 23 Jan 2017 19:40:00 +0000 34661 at http://sqlmag.com Infrastructure Challenges with Microsoft SQL Server In-Memory Features http://sqlmag.com/pure-storage/infrastructure-challenges <div class="field-deck"> Sponsored by: Pure Storage </div> <div class="node-body article-body"><p><strong>Date: Thursday, March 23, 2017<br /> Time: 02:00 PM Eastern Daylight Time<br /> Duration: 1 hour</strong></p></div> <p><a href="http://sqlmag.com/pure-storage/infrastructure-challenges" target="_blank">read more</a></p> Pure Storage Systems Management SQL Server Fri, 20 Jan 2017 15:07:00 +0000 34801 at http://sqlmag.com Tips Concerning Temporal Tables http://sqlmag.com/sql-server/tips-concerning-temporal-tables <div class="node-body article-body">Here are a few tips on working with temporal tables, which were introduced in SQL Server 2016 to enable tracking history of changes to data. </div> <p><a href="http://sqlmag.com/sql-server/tips-concerning-temporal-tables" target="_blank">read more</a></p> http://sqlmag.com/sql-server/tips-concerning-temporal-tables#comments SQL Server SQL Server sql server 2016 Temporal Tables Tue, 17 Jan 2017 23:55:00 +0000 34651 at http://sqlmag.com Identifying SQL Server Logins without Default Database Users http://sqlmag.com/security/identifying-sql-server-logins-without-default-database-users <div class="node-body article-body">Have you run into a connection issue in SQL Server where you have a valid login and password yet still can't connect to the database? It may be because your login doesn't have a user assignment in its default database (whether that this the database you're querying or not.) Read on to see how this happens and how to identify and correct it.</div> <p><a href="http://sqlmag.com/security/identifying-sql-server-logins-without-default-database-users" target="_blank">read more</a></p> http://sqlmag.com/security/identifying-sql-server-logins-without-default-database-users#comments Security connection default database login Microsoft SQL Server missing problem user Mon, 16 Jan 2017 19:20:00 +0000 34641 at http://sqlmag.com SQL Server Security Challenges and Best Practices http://sqlmag.com/idera/sql-server-security-challenges-and-best-practices <div class="field-deck"> Sponsored by: IDERA </div> <div class="node-body article-body">View On Demand Now</div> <p><a href="http://sqlmag.com/idera/sql-server-security-challenges-and-best-practices" target="_blank">read more</a></p> Idera Systems Management SQL Server Database Administration Mon, 16 Jan 2017 00:18:00 +0000 34781 at http://sqlmag.com PowerShell eBook http://sqlmag.com/idera/powershell-ebook <div class="node-body article-body">Download this e-book will dive deep into defining function parameters, creating new function and adding help to your functions. It will also cover conditions, which are what you need to make scripts clever, as well as creating your own functions.</div> <p><a href="http://sqlmag.com/idera/powershell-ebook" target="_blank">read more</a></p> Idera Systems Management SQL Server Database Administration Mon, 16 Jan 2017 00:18:00 +0000 34751 at http://sqlmag.com How To Deal With an Inherited SQL Server http://sqlmag.com/idera/how-deal-inherited-sql-server <div class="node-body article-body">In this whitepaper, SQL Savant Andy Warren walks you through a set of Week 1 Best Practices. It provides insight on how to prioritize the tasks necessary to navigate the new SQL database to ensure you provide maximum results with minimal negative impact to the organization.  </div> <p><a href="http://sqlmag.com/idera/how-deal-inherited-sql-server" target="_blank">read more</a></p> Idera Systems Management SQL Server Database Administration Mon, 16 Jan 2017 00:18:00 +0000 34741 at http://sqlmag.com SQL Server in Simple Words http://sqlmag.com/idera/sql-server-simple-words <div class="node-body article-body">In this eBook, learn  tips and techniques that utilize some of the capabilities available with SSMS that can help you enhance your productivity.</div> <p><a href="http://sqlmag.com/idera/sql-server-simple-words" target="_blank">read more</a></p> Idera Systems Management SQL Server Database Administration Mon, 16 Jan 2017 00:18:00 +0000 34731 at http://sqlmag.com Identifying Logins with Default Database Connectivity Issues in SQL Server http://sqlmag.com/database-security/identifying-logins-default-database-connectivity-issues-sql-server <div class="node-body article-body">You've a valid login and password. You've rights to the database you're trying to query. You've verified the sids (unique identifier for a SQL Server login and a database user) match. That's all that is needed to run a query on your database given you have no network issues between you and the database server right? Wrong. In this article Tim Ford looks at another way in which you or your customers may not be able to reach their data and provides a script for identifying those logins that may be involved.</div> <p><a href="http://sqlmag.com/database-security/identifying-logins-default-database-connectivity-issues-sql-server" target="_blank">read more</a></p> http://sqlmag.com/database-security/identifying-logins-default-database-connectivity-issues-sql-server#comments Database Security can't connect default database login missing rights script security SQL Server user Fri, 13 Jan 2017 13:56:00 +0000 34631 at http://sqlmag.com DATA TALES #11: The Case of the Ballooning Tables http://sqlmag.com/sql-server/data-tales-11-case-ballooning-tables <div class="node-body article-body"><p>Over recent months I have written a <a href="http://sqlmag.com/database-performance-tuning/data-tales-case-database-diet-part-1">series of articles</a> on how the overall size of a financial services database was tamed by the application of table compression, XML compression, and PDF size reduction. I have applied this approach at many sites but recently came across one where the outcome seemed to constantly be getting worse rather than better. Every time I tried to improve the situation, it got worse. Let&rsquo;s discuss why.</p> <p><strong>Transforming the Database</strong></p></div> <p><a href="http://sqlmag.com/sql-server/data-tales-11-case-ballooning-tables" target="_blank">read more</a></p> http://sqlmag.com/sql-server/data-tales-11-case-ballooning-tables#comments SQL Server Mon, 09 Jan 2017 17:34:00 +0000 34621 at http://sqlmag.com What You Need to Know About Managing Your SQL Server Performance http://sqlmag.com/idera/managing-sql-server-performance <div class="field-deck"> Sponsored by: IDERA </div> <div class="node-body article-body">View On Demand Now</div> <p><a href="http://sqlmag.com/idera/managing-sql-server-performance" target="_blank">read more</a></p> Idera Systems Management SQL Server Database Administration Mon, 02 Jan 2017 00:18:00 +0000 34681 at http://sqlmag.com How Old Are Your Backups? http://sqlmag.com/database-backup-and-recovery/how-old-are-your-backups <div class="node-body article-body">Do you want a quick view into how old your backups are or if you're missing any backups on your SQL Server instances? Here is a query for determining just that.</div> <p><a href="http://sqlmag.com/database-backup-and-recovery/how-old-are-your-backups" target="_blank">read more</a></p> http://sqlmag.com/database-backup-and-recovery/how-old-are-your-backups#comments Database Backup and Recovery age Backup database Microsoft missing SQL Server Fri, 30 Dec 2016 19:30:00 +0000 34611 at http://sqlmag.com Querying Secure Information from a Restored Master Database Backup http://sqlmag.com/security/querying-secure-information-restored-master-database-backup <div class="node-body article-body">I was recently asked if it was possible to get security information from a restored copy of the SQL Server master database. This article touches on just how easy it is to get information about that and other things from a restored copy of master and without rights in the original master database.</div> <p><a href="http://sqlmag.com/security/querying-secure-information-restored-master-database-backup" target="_blank">read more</a></p> http://sqlmag.com/security/querying-secure-information-restored-master-database-backup#comments Security Database Administration copy database login master restore security SQL Server Thu, 29 Dec 2016 17:08:00 +0000 34601 at http://sqlmag.com Build your Cloud Analytics Solution from an Azure Template http://sqlmag.com/power-bi/build-your-cloud-analytics-solution-azure-template <div class="field-byline"> Quickly generate building blocks needed for analytics using templates </div> <div class="node-body article-body">Cloud computing presents a unique platform for generating complex analytics solutions quickly. With the use of pre-build solution templates, Azure provides an easy mechanism to get started.</div> <p><a href="http://sqlmag.com/power-bi/build-your-cloud-analytics-solution-azure-template" target="_blank">read more</a></p> http://sqlmag.com/power-bi/build-your-cloud-analytics-solution-azure-template#comments Power BI Analytics Azure Business Intelligence Business Intelligence Professional Cloud BI Power BI Tue, 27 Dec 2016 14:24:00 +0000 34591 at http://sqlmag.com SQL Server IO Analysis Part 1 http://sqlmag.com/database-administration/sql-server-io-analysis-part-1 <div class="node-body article-body">The SQL Server Dynamic Management Objects provide a wealth of information about performance within the internal structures of Microsoft SQL Server. In this series Tim Ford will start with identifying the base Dynamic Management Function involved in collecting IO baselines. In subsequent articles in this series he'll expose collection, benchmarking, statistical analysis and reporting of the metadata collected for use in root cause analysis as well as in refuting misconceptions about performance issues rooting themselves in "poor storage performance rather than burdensome untuned queries.</div> <p><a href="http://sqlmag.com/database-administration/sql-server-io-analysis-part-1" target="_blank">read more</a></p> http://sqlmag.com/database-administration/sql-server-io-analysis-part-1#comments Database Administration DMF DMO DMV dm_io_virtual_file_stats IO latency Performance script SQL Fri, 23 Dec 2016 20:10:00 +0000 23341 at http://sqlmag.com Quick T/SQL Tip: Parsing Drive and File Information in SQL Server http://sqlmag.com/sql-server/quick-tsql-tip-parsing-drive-and-file-information-sql-server <div class="node-body article-body"><p>Parsing full physical file names for information is one of those tasks a Database Administrator finds they do on a semi-frequent basis; from looking up SQL Agent Job output paths or reviewing database file metadata.&nbsp; Recently,&nbsp;I found myself&nbsp;updating a SQL Server Reporting Services report&nbsp;which provides SQL Agent Job failure history to the DBA Team.&nbsp; I was adding functionality that would include the output file for any job hitting the report.&nbsp; This allows the DBA to troubleshoot the failure details without having to navigate to the job on the instance and pull </p></div> <p><a href="http://sqlmag.com/sql-server/quick-tsql-tip-parsing-drive-and-file-information-sql-server" target="_blank">read more</a></p> http://sqlmag.com/sql-server/quick-tsql-tip-parsing-drive-and-file-information-sql-server#comments SQL Server file parse path String Transact SQL Fri, 16 Dec 2016 17:00:00 +0000 20331 at http://sqlmag.com What You Need to Know about DATETIMEOFFSET and SQL Server 2016's AT TIME ZONE Function http://sqlmag.com/sql-server/what-you-need-know-about-datetimeoffset-and-sql-server-2016s-time-zone-function <div class="node-body article-body">Time zone related calculations with DATETIMEOFFSET values can get quite tricky. Prior to the introduction of the AT TIME ZONE function the two main tools that we had for time zone conversions were the TODATETIMEOFFSET and SWITCHOFFSET functions.</div> <p><a href="http://sqlmag.com/sql-server/what-you-need-know-about-datetimeoffset-and-sql-server-2016s-time-zone-function" target="_blank">read more</a></p> http://sqlmag.com/sql-server/what-you-need-know-about-datetimeoffset-and-sql-server-2016s-time-zone-function#comments SQL Server AT TIME ZONE DATETIMEOFFSET sql server 2016 SQL Server Administration Tue, 13 Dec 2016 10:44:00 +0000 34581 at http://sqlmag.com Configuring R on SQL Server 2016 http://sqlmag.com/sql-server/configuring-r-sql-server-2016 <div class="node-body article-body"><p>As people look to incorporate R code into their SQL Server environment there are a lot of questions surrounding how it works. &nbsp;As R is very memory intensive, is it possible that people running R code will prevent other processes from running? What processes should be monitored to determine the impact of R code on SQL Server performance? Does the server need to have internet access to run R? Is it possible with R to consume server memory without even loading something onto the server? Why do you have to run R code as an external script within SQL Server?</p></div> <p><a href="http://sqlmag.com/sql-server/configuring-r-sql-server-2016" target="_blank">read more</a></p> http://sqlmag.com/sql-server/configuring-r-sql-server-2016#comments SQL Server Tue, 06 Dec 2016 15:45:00 +0000 34511 at http://sqlmag.com