Browse by Tags

Related Posts
  • Blog Post: 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 with you all a Power Shell script that helped us to...
  • Blog Post: 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 file that are been recycle when they arrive to 20...
  • Blog Post: 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 in SQL 2008). SQL Server 2012 added a new feature...
  • Blog Post: 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, the top command is selecting the number applied...
  • Blog Post: Network bind order warning during SQL Server installation at failover cluster

    Installing SQL Server 2008, 2008R2 and 2012 on failover cluster has been significantly changed from SQL Server 2000 and 2005. Installation is performed separately on each node in order to avoid failures and downtime and much more. One of improvements is more "in-depth" pre-installation checks. One of...
  • Blog Post: Startup parameters in SQL 2012.

    SQL 2012 brings us new options and cool features, one of these features is the startup parameters. On previous versions; when we needed to update a startup parameter for the database, we needed to go to the configuration manager and then in under the SQL server service we were able to add in a line with...
  • Blog Post: 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 and load into SQL Server flat files / application...
  • Blog Post: 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 “alter trace”. In SQL Server 2005 and 2008 we are...
  • Blog Post: 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 help regarding the sys.dm_exec_cursors system table...
  • Blog Post: 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 Server logins. 2) Remove all users from SYSADMIN...
  • Blog Post: Target Recovery Time - new database option in SQL Server 2012

    Recently I’ve created a new database on my SQL Server 2012 instance. I reviewed the new database options before creating. One of the options that I’d like to share today is “Target Recovery Time” in seconds or TARGET_RECOVERY_TIME. Target Recovery Time is new in SQL Server...
  • Blog Post: 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 Command like: Select, Proc, Func, triggers, tables...
  • Blog Post: Four Tips for SQL Tuning for SharePoint Part 3 TEMPDB

        One of the focal points in SQL Server Tuning for SharePoint is around the TEMPDB. A lot of performance issues are caused by the performance of the TEMPDB. TEMPDB is one of the four system databases. Master is the database that contains all the information about the configuration of the...
  • Blog Post: 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 different attributes of your system. If you open...
  • Blog Post: 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 short list or do I need the show advance option ?...
  • Blog Post: 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 CDC. Starting with version 2005, SQL Server supports...
  • Blog Post: 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 extended events (which is also know as Xevents...