SQLPFE.IL

  • SQL Protocol How to secure and disable unnecessary protocol with a Power Shell script

    As part of a project at one of my customers I was asked to create an automatic installation that will be a secure installation and will use an Alias, disable unnecessary protocols and use a fix port number instead of dynamic. In my last post I shared...
  • SQL Alias PowerShell script

    Hello everyone, this time I am going to show the "Server Alias". I have been asked by one of my customers to write down a PowerShell script to add an SQL Alias as part of an automatic installation. The Alias is stored in the registry at this...
  • Using the proper login account for the correct SQL Service

    I was often asked this question: I'm installing my SQL Server. What should I use as the service account? There are a few options (Local Account, Service Network, domain User) What is the best and suitable account for the service? I will try to answer...
  • Sys.Configuration

    A while ago, I was asked by customer how to tell if an instance parameter is dynamic or rather static (which requires me to restart the instance service). Parameters like fill factor (%) or max degree of parallelism . Does this parameter exist in the...
  • LOG PARSER.

    Hello everyone, today I'd like to write about the LOG PARSER. First time I have encountered this tool was around 2004 when I had to load a big mass of data (IIS Log) into a database. A month ago I was asked by a customer, how can is it possible to read...
  • SQL 2014 Beta

    SQL 2014 BETA is available now. You can download and enjoy it. Don’t forget to try the In memory DB http://technet.microsoft.com/en-US/evalcenter/dn205290.aspx
  • Replication of indexed views

    Recently we created a Transactional Replication for one of our customer's database. In addition to tables, views and procedures we had indexed view including Full Text Index base on it. Currently, we cannot specify on the management studio what we’d like...
  • Keep track of the DML changes:

    Last week, one of my customers asked me how to track DML code. He had a scenario in which he needed to update a table and keep the old data. In the past, developers and DBAs have used custom code to track changes, stored procedures, triggers and...
  • The scenario of a missing SA password:

    You are the senior DBA of your organization, responsible for all the databases that hold the critical info. In order to secure the environment and the databases, you performed the next recommended steps: 1) Remove all built-in admin account from SQL...
  • Discontinued and Deprecated features in SQL Server 2012

    Recently we encountered a few problems with upgrades to SQL Server 2012, mainly because of usage of features that are no longer supported. Each time we are approach an upgrade, we try to minimize the risk. These built-in tools can assist us: SQL Server...
  • SQL Server 2014 is here !

    Community Technology Preview 1 is available. You are welcome to experiment with all great new features. http://technet.microsoft.com/en-US/evalcenter/dn205290.aspx
  • Did you know , Dead locks can be track from the System Health in SQL 2012

      Before using SQL server 2008, in order to capture a deadlock, we had to create a server side/profiler trace or use trace flags 1204, 1222. If you were lucky enough to work with SQL 2008/2008R2 you could have tried using XEvents (which were introduced...
  • Where is the Help in SQL 2012? F1

    In SQL 2012 the BOL (Books Online) are only located on the internet. When you press F1, you are redirected to the web, so what can we do in a closed environment, where my production server is not connected to the internet and I need the F1? Checking for...
  • SQL 2012 System health–fast analysis

    Once we encounter a few problems with the SQL 2012 and we need to analyze it, what will be the first recommended step to start with? During my last post I have discussed the default trace in SQL and its benefits. SQL 2008 introduced a new option called...
  • Trace flag at query level is supported

    Have you ever wanted to execute specific query with specific trace flag turned on, without affecting the session or the server level ? If the answer is yes, now you have a hint to support it – "QUERYTRACEON". It been out there for a while, but...
  • Check your SQL – default Trace

    Every installation of SQL has a default trace. The default trace was introduced in SQL 2005, It is the same trace that we know from the profiler or server but it is a preconfigured trace that is enabled as default. The default trace create five *.TRC...
  • How to avoid text-to-date conversion mismatches

      In one of our previous posts we saw how different set options can affect execution plans and result sets. Now let's see how to write our code in order to avoid text-to-date conversion mismatches. In this example we can see one string being converted...
  • the case of the unexplained - how we can get different execution plans and result sets for same query

    The other day, my colleague and a good friend called me and told that her SQL Server gone nuts. One of developers launched a query and it run for ages, once she executed the same query it returned results in a few seconds. So how something like this can...
  • Working with SQLIO and analyzing it’s output

    Introduction While working on a customer request, I faced the question what is the SQLIO? how to operate it and how to analyze its outputs? The customer has read about the tool and was also able to run it but wanted more information on how to do...
  • SQL Server 2012 new feature The Snippets

    Snippets In SQL 2012 we have a new feature called snippets; So what are this snippets? Lots of DBAs, when required to create a new T-SQL command, check out the syntax in BOL, they try to remember on how to do it, Or sometimes we need a repeating T-SQL...
  • PERFMON & SQL Server - a small useful tip

    One of the best Performance tools that I use is the PERFMON. PERFMON is a tool that exists out of the box on every windows machine and has lots of counters for almost every application. Perfmon provides current, accurate information on thousands of...
  • Stop using TOP to page for data from now on use the OFFSET

      With all the innovation that SQL 2012 bring to us in the T-SQL area we have the offset command. What is the offset command? I early version of SQL (before 2012) when we wanted to select out of a table a number of row we all have used the TOP command...
  • SQL Server 2012 Audit Enhancements

    SQL Server Auditing is useful for auditing the usage of your database operations. We've got quite a bit of new features and enhancements in SQL Server 2012. First, server level auditing is now available in all SQL Server 2012 editions. Database level...
  • User-Defined Server Roles - new server option in SQL Server 2012

    Along with Organization growth and databases growth we need more specific permissions for DBAs, operations and development teams. Starting SQL Server 2005 we can grant server permissions on a more granular level, for example “view server state” and...
  • HBA, Queue Depths and inflight IO.

      I had recently received a question form one of my customers asking what is the recommended Queue Depths value for the HBA adapter. This question was intriguing and drove me to do a little research on the subject; I’d like to share the information...