SlideShare a Scribd company logo
1.Difference between Checkpoint and Lazy Writer

      S.No   CheckPoint                         Lazy Writer

      1      Flush dirty pages to Disk          Flush dirty pages to disk

      2      Flush only Data pages to disk      Check for available memory and
                                                removed Buffer pool (execution
                                                plan/compile plan/ Data pages
                                                /Memory objects)

      3      Default, Occurs approximately      Occurs depending upon memory
             every 1 minute                     pressure and resource availability

      4      Can be managed with sp_confige     It is lazy, Sql server manages by its
             -recovery interval option          own.

      5      Does not check the memory          Monitor the memory pressure and try
             pressure                           maintain the available free memory.

      6      Crash recovery process will be     No role in recovery
             fast to read log as data file is
             updated.

      7      Occurs for any DDL statement       Occurs per requirement

      8      Occurs before Backup/Detach        Occurs per requirement
             command

      9      Depends upon the configuration     Works on Least recent used pages and
             setting, we can control.           removed unused plans first, no user
                                                control.

      10     For simple recovery it flush the   No effect on recovery model.
             tlog file after 70% full.

      11     Can manually /Forcefully run       No command for Lazy Writer
             command “Checkpoint”

      12     Very Less performance impact       No performance impact


2.Difference between Mirroring and Log Shipping


      S.No   Mirroring                          Log Shipping

      1      Principle can have single mirror   Multiple stand by servers can be
                                                possible.

      2      Generally good to have 10 DB’s     No limit
             for one server

      3      No data loss and can be used as    May be some data loss as per schedule.
high availability like Clustering     And secondary server takes some
                                                  manual work and time to be primary

     4      Read log read and transfer the        Transfer the log back up and restored
            committed transaction through         at standby server.
            endpoints.

     5      Only committed transaction            Committed as well as uncommitted
                                                  and whole log backup restores.

     6      PAGE repair is possible if            N/A
            principle database page gets
            corrupt

     7      Mirrored DB can only be accessed Secondary server can be reporting
            using snapshot DB                server (read-only)

     8      Principle and Mirror server should Primary and secondary server should
            have same edition                  be compatible server for restore.

     9      Require FULL recovery model           Require FULL or Bulk-Logged
                                                  recovery model

     10     Requires Sql Server 2005 SP1 or       Enterprise edition for Sql Server 2000
            higher – Enterprise or Developer      and even Standard edition for 2005 can
            Editions                              works

     11     Immediate data moved depending        Can control the flow of data by
            on SEND and WAIT queue                scheduling jobs

     12     As Immediate data moves, user         As delay in data transfer can avoided
            error reflects at mirrored DB         user error.

3.Difference between Change Track and Change Data Capture – CDC in SQL Server 2008


     S.No   Change Track                          Change Data Capture

     1      It is about fact:                     It is about the Data:
            It captures only the fact as the      Change data capture provides
            tracking table has changed. It does   historical change information for a
            NOT capture the data.                 user table by capturing both the fact
            Therefore, change tracking is         that DML changes were made and the
            more limited in the historical        actual data that was changed.
            questions it can answer compared
            to change data capture. However,
            for those applications that do not
            require the historical information,
            there is far less storage overhead
            because of the changed data not
            being captured
2   Storage:                               Storage:
    Internal tables are placed on the      When change data capture is enabled
    same filegroup as the parent           for a database, a few things are added
    entity. You could use the              to the database, including a new
    sys.internal_tables catalog view       schema (called cdc), some metadata
    to show all the internal tables and    tables, and a trigger to capture Data
    parent entities. For example:          Definition Language (DDL) events.
    select name,
    object_name(parent_id) as              The two function names are,
    parent_object from                     respectively,
    sys.internal_tables                    fn_cdc_get_all_changes_ and
                                           fn_cdc_get_net_changes_, with the
                                           capture instance name appended. Note
                                           that (like the change tracking feature)
                                           this functionality requires the table to
                                           have a primary key or other unique
                                           index.

3   Supported on “Simple” recovery         Prevents Log truncation.
    model also.                            Forces full logging of some bulk
    It is recommended that you use         operations.
    snapshot isolation when change
    tracking is enabled. Snapshot          One major point to note here is that
    isolation itself can add significant   once change data capture is enabled,
    workload overhead and requires         the transaction log behaves just as it
    much more careful management           does with transactional replication—
    of tempdb.                             the log cannot be truncated until the
                                           log reader has processed it. This means
                                           a checkpoint operation, even in
                                           SIMPLE recovery mode, will not
                                           truncate the log unless it has already
                                           been processed by the log reader.

4   It uses synchronous tracking           Change Data Capture (CDC) uses the
    mechanism.                             asynchronous process that reads the
    once a database is enabled for         transaction log.
    change tracking, a version
    number is instituted, which
    allows ordering of operations

5   Change Tracking has minimal            It has almost nil impact as it
    impact on the system.                  asynchronous mechanism reads from
                                           the transaction log.

6   It uses TempDB heavily                 It uses transaction log.

7   DDL Restriction:                       No such DDL restriction
    There are restrictions on the DDL
    that can be performed on a table
    being tracked. The most notable
    restriction is that the primary key
    cannot be altered in any way. The
other restriction worth calling out
             here is that an ALTER TABLE
             SWITCH will fail if either table
             involved has change tracking
             enabled.

      8      SQL Agent not needed                  t requires SQL Agent to be running.
                                                   SQL Agent Job & Transaction
                                                   Replication:
                                                   Two SQL Agent jobs may be created:
                                                   the capture job and the cleanup job. I
                                                   say "may be created" because the
                                                   capture job is the same as the one used
                                                   for harvesting transactions in
                                                   transactional replication.
                                                   If transactional replication is already
                                                   configured, then only the cleanup job
                                                   will be created and the existing log
                                                   reader job will also be used as the
                                                   capture job

      9      Permission required to enable:        Permission required to enable:
             SYSADMIN                              DBOwner

4.Difference between Index Rebuild and Index Reorganize in SQL Server 2005


      S.No   Index Rebuild                         Index Reorganize

      1      Index Rebuild drops the existing      Index Reorganize physically
             Index and Recreates the index         reorganizes the leaf nodes of the index.
             from scratch.

      2      Rebuild the Index when an index       Reorganize the Index when an index is
             is over 30% fragmented.               between 10% and 30% fragmented.

      3      Rebuilding takes more server          Always prefer to do Reorganize the
             resources and uses locks unless       Index.
             you use the ONLINE option
             available in 2005 Enterprise and
             Development editions.

      4      T-SQL for Rebuilding all              T-SQL for Reorganize all Indexes of
             Indexes of a particular table.        a particular table.

             USE AdventureWorks;                   USE AdventureWorks;
             GO                                    GO
             ALTER INDEX ALL ON                    ALTER INDEX ALL ON
             HumanResources.Employee               HumanResources.Employee
             REBUILD                               REORGANIZE
             GO                                    GO
Note: If fragmentation is below 10%, no action required.

5.Difference between User -defined SP and System-defined SP


      S.No    User-defined SP                     System-defined SP

      1       Once we create User defined SP      System defined sp are available in
              in one database i.e available to    master DB.These sp’s can be directly
              only that database directly.i.e     called from any DB
              we cannot call it from some other
              DB’s directly

      2       UDSP will be used to fulfill the    SDSP will be used for managing sql
              user requirements                   server

Please visit my blog @ http://onlydifferencefaqs.blogspot.in/
Ad

More Related Content

What's hot (9)

Performence tuning
Performence tuningPerformence tuning
Performence tuning
Vasudeva Rao
 
Q2.12: Research Update on big.LITTLE MP Scheduling
Q2.12: Research Update on big.LITTLE MP SchedulingQ2.12: Research Update on big.LITTLE MP Scheduling
Q2.12: Research Update on big.LITTLE MP Scheduling
Linaro
 
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise PluginPandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS
 
Presentation
PresentationPresentation
Presentation
Daniel FitzGerald
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
Joseph D'Antoni
 
OS caused Large JVM pauses: Deep dive and solutions
OS caused Large JVM pauses: Deep dive and solutionsOS caused Large JVM pauses: Deep dive and solutions
OS caused Large JVM pauses: Deep dive and solutions
Zhenyun Zhuang
 
Introduction to MySQL InnoDB Cluster
Introduction to MySQL InnoDB ClusterIntroduction to MySQL InnoDB Cluster
Introduction to MySQL InnoDB Cluster
I Goo Lee
 
SQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV'sSQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV's
Sparkhound Inc.
 
Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...
Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...
Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...
Zhenyun Zhuang
 
Performence tuning
Performence tuningPerformence tuning
Performence tuning
Vasudeva Rao
 
Q2.12: Research Update on big.LITTLE MP Scheduling
Q2.12: Research Update on big.LITTLE MP SchedulingQ2.12: Research Update on big.LITTLE MP Scheduling
Q2.12: Research Update on big.LITTLE MP Scheduling
Linaro
 
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise PluginPandora FMS: DB2 Enterprise Plugin
Pandora FMS: DB2 Enterprise Plugin
Pandora FMS
 
OS caused Large JVM pauses: Deep dive and solutions
OS caused Large JVM pauses: Deep dive and solutionsOS caused Large JVM pauses: Deep dive and solutions
OS caused Large JVM pauses: Deep dive and solutions
Zhenyun Zhuang
 
Introduction to MySQL InnoDB Cluster
Introduction to MySQL InnoDB ClusterIntroduction to MySQL InnoDB Cluster
Introduction to MySQL InnoDB Cluster
I Goo Lee
 
SQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV'sSQL Server Admin Best Practices with DMV's
SQL Server Admin Best Practices with DMV's
Sparkhound Inc.
 
Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...
Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...
Eliminating OS-caused Large JVM Pauses for Latency-sensitive Java-based Cloud...
Zhenyun Zhuang
 

Viewers also liked (18)

How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
Umar Ali
 
Dotnet difference between questions list- 1
Dotnet difference between questions list- 1Dotnet difference between questions list- 1
Dotnet difference between questions list- 1
Umar Ali
 
CSharp difference faqs- 1
CSharp difference faqs- 1CSharp difference faqs- 1
CSharp difference faqs- 1
Umar Ali
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvc
Umar Ali
 
Linq difference faqs- 1
Linq difference faqs- 1Linq difference faqs- 1
Linq difference faqs- 1
Umar Ali
 
Silverlight difference faqs-1
Silverlight  difference faqs-1Silverlight  difference faqs-1
Silverlight difference faqs-1
Umar Ali
 
Asp.Net difference faqs- 10
Asp.Net difference faqs- 10Asp.Net difference faqs- 10
Asp.Net difference faqs- 10
Umar Ali
 
SOA Difference FAQs
SOA Difference FAQsSOA Difference FAQs
SOA Difference FAQs
Umar Ali
 
Silverlight difference faqs- 2
Silverlight difference faqs- 2Silverlight difference faqs- 2
Silverlight difference faqs- 2
Umar Ali
 
Software technology
Software technologySoftware technology
Software technology
Umar Ali
 
Sql Server Difference FAQs Part One
Sql Server Difference FAQs Part OneSql Server Difference FAQs Part One
Sql Server Difference FAQs Part One
Umar Ali
 
ASP.NET Difference FAQs
ASP.NET Difference FAQsASP.NET Difference FAQs
ASP.NET Difference FAQs
Umar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
Umar Ali
 
Sql server difference faqs- 5
Sql server difference faqs-  5Sql server difference faqs-  5
Sql server difference faqs- 5
Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
Umar Ali
 
Important Run Commands
Important Run CommandsImportant Run Commands
Important Run Commands
Umar Ali
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
Umar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
Umar Ali
 
Dotnet difference between questions list- 1
Dotnet difference between questions list- 1Dotnet difference between questions list- 1
Dotnet difference between questions list- 1
Umar Ali
 
CSharp difference faqs- 1
CSharp difference faqs- 1CSharp difference faqs- 1
CSharp difference faqs- 1
Umar Ali
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvc
Umar Ali
 
Linq difference faqs- 1
Linq difference faqs- 1Linq difference faqs- 1
Linq difference faqs- 1
Umar Ali
 
Silverlight difference faqs-1
Silverlight  difference faqs-1Silverlight  difference faqs-1
Silverlight difference faqs-1
Umar Ali
 
Asp.Net difference faqs- 10
Asp.Net difference faqs- 10Asp.Net difference faqs- 10
Asp.Net difference faqs- 10
Umar Ali
 
SOA Difference FAQs
SOA Difference FAQsSOA Difference FAQs
SOA Difference FAQs
Umar Ali
 
Silverlight difference faqs- 2
Silverlight difference faqs- 2Silverlight difference faqs- 2
Silverlight difference faqs- 2
Umar Ali
 
Software technology
Software technologySoftware technology
Software technology
Umar Ali
 
Sql Server Difference FAQs Part One
Sql Server Difference FAQs Part OneSql Server Difference FAQs Part One
Sql Server Difference FAQs Part One
Umar Ali
 
ASP.NET Difference FAQs
ASP.NET Difference FAQsASP.NET Difference FAQs
ASP.NET Difference FAQs
Umar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
Umar Ali
 
Sql server difference faqs- 5
Sql server difference faqs-  5Sql server difference faqs-  5
Sql server difference faqs- 5
Umar Ali
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
Umar Ali
 
Important Run Commands
Important Run CommandsImportant Run Commands
Important Run Commands
Umar Ali
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
Umar Ali
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
Umar Ali
 
Ad

Similar to Sql server difference faqs- 7 (20)

You Oracle Technical Interview
You Oracle Technical InterviewYou Oracle Technical Interview
You Oracle Technical Interview
Hossam El-Faxe
 
Google file system
Google file systemGoogle file system
Google file system
Roopesh Jhurani
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
Digicomp Academy Suisse Romande SA
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
Manish Mudhliyar
 
Help! my sql server log file is too big!!! tech republic
Help! my sql server log file is too big!!!   tech republicHelp! my sql server log file is too big!!!   tech republic
Help! my sql server log file is too big!!! tech republic
Kaing Menglieng
 
Database architectureby howard
Database architectureby howardDatabase architectureby howard
Database architectureby howard
oracle documents
 
Remote DBA Experts 11g Features
Remote DBA Experts 11g FeaturesRemote DBA Experts 11g Features
Remote DBA Experts 11g Features
Remote DBA Experts
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
Navneet Upneja
 
Sql server-dba
Sql server-dbaSql server-dba
Sql server-dba
NaviSoft
 
Oracle 11g data warehouse introdution
Oracle 11g data warehouse introdutionOracle 11g data warehouse introdution
Oracle 11g data warehouse introdution
Aditya Trivedi
 
Redo log
Redo logRedo log
Redo log
PaweOlchawa1
 
MySQL Cluster Asynchronous replication (2014)
MySQL Cluster Asynchronous replication (2014) MySQL Cluster Asynchronous replication (2014)
MySQL Cluster Asynchronous replication (2014)
Frazer Clement
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview Questions
Arun Sharma
 
Open world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learnedOpen world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learned
chet justice
 
High availability solutions bakostech
High availability solutions bakostechHigh availability solutions bakostech
High availability solutions bakostech
Viktoria Bakos
 
Redosize
RedosizeRedosize
Redosize
oracle documents
 
Redo and Rollback
Redo and RollbackRedo and Rollback
Redo and Rollback
Tubaahin10
 
Rails DB migrate SAFE.pdf
Rails DB migrate SAFE.pdfRails DB migrate SAFE.pdf
Rails DB migrate SAFE.pdf
GowthamvelPalanivel
 
Sql server tips from the field
Sql server tips from the fieldSql server tips from the field
Sql server tips from the field
JoAnna Cheshire
 
You Oracle Technical Interview
You Oracle Technical InterviewYou Oracle Technical Interview
You Oracle Technical Interview
Hossam El-Faxe
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
 
Help! my sql server log file is too big!!! tech republic
Help! my sql server log file is too big!!!   tech republicHelp! my sql server log file is too big!!!   tech republic
Help! my sql server log file is too big!!! tech republic
Kaing Menglieng
 
Database architectureby howard
Database architectureby howardDatabase architectureby howard
Database architectureby howard
oracle documents
 
Remote DBA Experts 11g Features
Remote DBA Experts 11g FeaturesRemote DBA Experts 11g Features
Remote DBA Experts 11g Features
Remote DBA Experts
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
Navneet Upneja
 
Sql server-dba
Sql server-dbaSql server-dba
Sql server-dba
NaviSoft
 
Oracle 11g data warehouse introdution
Oracle 11g data warehouse introdutionOracle 11g data warehouse introdution
Oracle 11g data warehouse introdution
Aditya Trivedi
 
MySQL Cluster Asynchronous replication (2014)
MySQL Cluster Asynchronous replication (2014) MySQL Cluster Asynchronous replication (2014)
MySQL Cluster Asynchronous replication (2014)
Frazer Clement
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview Questions
Arun Sharma
 
Open world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learnedOpen world exadata_top_10_lessons_learned
Open world exadata_top_10_lessons_learned
chet justice
 
High availability solutions bakostech
High availability solutions bakostechHigh availability solutions bakostech
High availability solutions bakostech
Viktoria Bakos
 
Redo and Rollback
Redo and RollbackRedo and Rollback
Redo and Rollback
Tubaahin10
 
Sql server tips from the field
Sql server tips from the fieldSql server tips from the field
Sql server tips from the field
JoAnna Cheshire
 
Ad

More from Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
Umar Ali
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
Umar Ali
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
Umar Ali
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
Umar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
Umar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
Umar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
Umar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
Umar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
Umar Ali
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
Umar Ali
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
Umar Ali
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerable
Umar Ali
 
Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
Umar Ali
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
Umar Ali
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
Umar Ali
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
Umar Ali
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
Umar Ali
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
Umar Ali
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
Umar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
Umar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
Umar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
Umar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
Umar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
Umar Ali
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
Umar Ali
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
Umar Ali
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerable
Umar Ali
 

Recently uploaded (20)

Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Build 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHSBuild 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHS
TECH EHS Solution
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Web and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in RajpuraWeb and Graphics Designing Training in Rajpura
Web and Graphics Designing Training in Rajpura
Erginous Technology
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
TrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token ListingTrsLabs Consultants - DeFi, WEb3, Token Listing
TrsLabs Consultants - DeFi, WEb3, Token Listing
Trs Labs
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Build 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHSBuild 3D Animated Safety Induction - Tech EHS
Build 3D Animated Safety Induction - Tech EHS
TECH EHS Solution
 

Sql server difference faqs- 7

  • 1. 1.Difference between Checkpoint and Lazy Writer S.No CheckPoint Lazy Writer 1 Flush dirty pages to Disk Flush dirty pages to disk 2 Flush only Data pages to disk Check for available memory and removed Buffer pool (execution plan/compile plan/ Data pages /Memory objects) 3 Default, Occurs approximately Occurs depending upon memory every 1 minute pressure and resource availability 4 Can be managed with sp_confige It is lazy, Sql server manages by its -recovery interval option own. 5 Does not check the memory Monitor the memory pressure and try pressure maintain the available free memory. 6 Crash recovery process will be No role in recovery fast to read log as data file is updated. 7 Occurs for any DDL statement Occurs per requirement 8 Occurs before Backup/Detach Occurs per requirement command 9 Depends upon the configuration Works on Least recent used pages and setting, we can control. removed unused plans first, no user control. 10 For simple recovery it flush the No effect on recovery model. tlog file after 70% full. 11 Can manually /Forcefully run No command for Lazy Writer command “Checkpoint” 12 Very Less performance impact No performance impact 2.Difference between Mirroring and Log Shipping S.No Mirroring Log Shipping 1 Principle can have single mirror Multiple stand by servers can be possible. 2 Generally good to have 10 DB’s No limit for one server 3 No data loss and can be used as May be some data loss as per schedule.
  • 2. high availability like Clustering And secondary server takes some manual work and time to be primary 4 Read log read and transfer the Transfer the log back up and restored committed transaction through at standby server. endpoints. 5 Only committed transaction Committed as well as uncommitted and whole log backup restores. 6 PAGE repair is possible if N/A principle database page gets corrupt 7 Mirrored DB can only be accessed Secondary server can be reporting using snapshot DB server (read-only) 8 Principle and Mirror server should Primary and secondary server should have same edition be compatible server for restore. 9 Require FULL recovery model Require FULL or Bulk-Logged recovery model 10 Requires Sql Server 2005 SP1 or Enterprise edition for Sql Server 2000 higher – Enterprise or Developer and even Standard edition for 2005 can Editions works 11 Immediate data moved depending Can control the flow of data by on SEND and WAIT queue scheduling jobs 12 As Immediate data moves, user As delay in data transfer can avoided error reflects at mirrored DB user error. 3.Difference between Change Track and Change Data Capture – CDC in SQL Server 2008 S.No Change Track Change Data Capture 1 It is about fact: It is about the Data: It captures only the fact as the Change data capture provides tracking table has changed. It does historical change information for a NOT capture the data. user table by capturing both the fact Therefore, change tracking is that DML changes were made and the more limited in the historical actual data that was changed. questions it can answer compared to change data capture. However, for those applications that do not require the historical information, there is far less storage overhead because of the changed data not being captured
  • 3. 2 Storage: Storage: Internal tables are placed on the When change data capture is enabled same filegroup as the parent for a database, a few things are added entity. You could use the to the database, including a new sys.internal_tables catalog view schema (called cdc), some metadata to show all the internal tables and tables, and a trigger to capture Data parent entities. For example: Definition Language (DDL) events. select name, object_name(parent_id) as The two function names are, parent_object from respectively, sys.internal_tables fn_cdc_get_all_changes_ and fn_cdc_get_net_changes_, with the capture instance name appended. Note that (like the change tracking feature) this functionality requires the table to have a primary key or other unique index. 3 Supported on “Simple” recovery Prevents Log truncation. model also. Forces full logging of some bulk It is recommended that you use operations. snapshot isolation when change tracking is enabled. Snapshot One major point to note here is that isolation itself can add significant once change data capture is enabled, workload overhead and requires the transaction log behaves just as it much more careful management does with transactional replication— of tempdb. the log cannot be truncated until the log reader has processed it. This means a checkpoint operation, even in SIMPLE recovery mode, will not truncate the log unless it has already been processed by the log reader. 4 It uses synchronous tracking Change Data Capture (CDC) uses the mechanism. asynchronous process that reads the once a database is enabled for transaction log. change tracking, a version number is instituted, which allows ordering of operations 5 Change Tracking has minimal It has almost nil impact as it impact on the system. asynchronous mechanism reads from the transaction log. 6 It uses TempDB heavily It uses transaction log. 7 DDL Restriction: No such DDL restriction There are restrictions on the DDL that can be performed on a table being tracked. The most notable restriction is that the primary key cannot be altered in any way. The
  • 4. other restriction worth calling out here is that an ALTER TABLE SWITCH will fail if either table involved has change tracking enabled. 8 SQL Agent not needed t requires SQL Agent to be running. SQL Agent Job & Transaction Replication: Two SQL Agent jobs may be created: the capture job and the cleanup job. I say "may be created" because the capture job is the same as the one used for harvesting transactions in transactional replication. If transactional replication is already configured, then only the cleanup job will be created and the existing log reader job will also be used as the capture job 9 Permission required to enable: Permission required to enable: SYSADMIN DBOwner 4.Difference between Index Rebuild and Index Reorganize in SQL Server 2005 S.No Index Rebuild Index Reorganize 1 Index Rebuild drops the existing Index Reorganize physically Index and Recreates the index reorganizes the leaf nodes of the index. from scratch. 2 Rebuild the Index when an index Reorganize the Index when an index is is over 30% fragmented. between 10% and 30% fragmented. 3 Rebuilding takes more server Always prefer to do Reorganize the resources and uses locks unless Index. you use the ONLINE option available in 2005 Enterprise and Development editions. 4 T-SQL for Rebuilding all T-SQL for Reorganize all Indexes of Indexes of a particular table. a particular table. USE AdventureWorks; USE AdventureWorks; GO GO ALTER INDEX ALL ON ALTER INDEX ALL ON HumanResources.Employee HumanResources.Employee REBUILD REORGANIZE GO GO
  • 5. Note: If fragmentation is below 10%, no action required. 5.Difference between User -defined SP and System-defined SP S.No User-defined SP System-defined SP 1 Once we create User defined SP System defined sp are available in in one database i.e available to master DB.These sp’s can be directly only that database directly.i.e called from any DB we cannot call it from some other DB’s directly 2 UDSP will be used to fulfill the SDSP will be used for managing sql user requirements server Please visit my blog @ http://onlydifferencefaqs.blogspot.in/