Tips for using temporary tables in SQL Server 2014 Consider using memory-optimized table variables instead of a traditional table variable to reduce tempdb use. SQL Server 2014 introduced In-Memory OLTP (In-Memory Optimization). In-Memory OLTP introduces the memory-optimized tables and the memory-optimized table type. A table variable created using a memory-optimized table type is a memory-optimized table variable. Memory-optimized table variables...
SQL Server
SQL Server 2014 Replication – Part 2
SQL Server 2014 Replication – Part 2 Author: Basit A. Farooq Editor’s note: In this second part of my SQL Server 2014 Replication article series, you’ll first learn about different types of replication agents and there security context. Next, you’ll learn how configure Distributor. Finally, you’ll learn how to configure Snapshot replication. Replication agents Replication agents perform the activities necessary...
Tips for using User-Defined Functions in SQL Server 2014
Tips for using User-Defined Functions in SQL Server 2014 Try to avoid using nested user-defined functions. Because using nested user-defined functions can result in some performance degradation, try to break down a nested function into simpler functions. Consider using CLR user-defined functions. The CLR user-defined functions were first introduced in SQL Server 2005. You can write the user-defined functions in...
Tips for using XML in SQL Server 2014
Tips for using XML in SQL Server 2014 Use SQLXML instead of Native XML Web Services. Beginning in SQL Server 2014, the Native XML Web Services is removed. So, you can no longer use CREATE ENDPOINT or ALTER ENDPOINT to add or modify SOAP/HTTP endpoints. Consider using the RAW mode of FOR XML queries, instead of AUTO or EXPLICIT modes....
Tips for using SQL Server 2014 Distributed Queries
Tips for using SQL Server 2014 Distributed Queries One of the first steps to optimize distributed queries against a SQL Server 2014 linked server is rewriting queries so, that the most work will be performed on the remote server, not the local server. You can run the remote query from Management Studio and take a look at the query plan...
Installing and Configuring SQL Server 2014 on Windows Server 2012 – (Part 1)
Installing and Configuring SQL Server 2014 on Windows Server 2012 – (Part 1) Author: Basit A. Farooq Introduction Microsoft SQL Server is an enterprise database server that is the cornerstone of modern business applications and is in the center of the business processes of many leading organizations. The latest release of Microsoft SQL Server, SQL Server 2014, has many new...
Tips for using SQL Server 2014 cursors
Tips for using SQL Server 2014 cursors Try to avoid using insensitive, static and keyset cursors, whenever possible. These types of cursor produce the largest amount of overhead on SQL Server 2014, because they cause a temporary table to be created in TEMPDB, which results in some performance degradation. Use FAST_FORWARD cursors, whenever possible. The FAST_FORWARD cursors produce the least...
Microsoft SQL Server 2014: Database Engine key new features – (Part 3)
Microsoft SQL Server 2014: Database Engine key new features – (Part 3) Author: Basit A. Farooq This is the third part of my article series on Microsoft SQL Server 2014: Database Engine key new feature. In this part, I will talk about following two SQL Server 2014 features: Encryption for Backups and Resource Governor Enhancements for Physical I/O control. Encryption...
Tips for using SQL Server 2014 triggers
Tips for using SQL Server 2014 triggers Try to minimize the DML trigger’s code size. Triggers fire during INSERT, UPDATE, or DELETE statements, so the more code that runs in the trigger, the slower each INSERT, UPDATE, and DELETE that fires it will be. Use cascading referential integrity constraints instead of triggers whenever possible. For example, if you need to...
Microsoft SQL Server 2014: Database Engine key new features – (Part 2)
Microsoft SQL Server 2014: Database Engine key new features – (Part 2) Author: Basit A. Farooq This is the second part of my article series on Microsoft SQL Server 2014: Database Engine key new feature. In this part, I will talk about SQL Server 2014 columnstore indexes. Updateable clustered columnstore index With the release of SQL Server 2012, Microsoft introduced...