SQL Server - Common Interview Questions and Answers Page 5




                                                                                                                                                                  Search




       Aptitude ?      Reasoning ?       Verbal Ability       GK      Puzzles     Programming ?   Engineering   Medical ?   Interview   Online Test

                                                                                                                                             Ads by Google
        SQL Server - Common Interview Questions and Answers
                                                                                                                                             SQL Server
       @ : Home > Technical Interview > SQL Server Common Questions > Interview Questions
                                                                                                                                             SQL Server Manager
        Database Management WinSQL - A Homogeneous Solution for Heterogeneous Environment. www.synametrics.com
                                                                                                                                             SQL Server Tools
        SQL Server Training Access Videos, Articles and More. Join the SSWUG.ORG Community Today! www.sswug.org

        Consulting Case Prep Interactive interview prep: math drills, frameworks & market-sizing www.casequestions.com
                                                                                                                                             Adaption Business
        Export SharePoint to SQL Live export of SharePoint lists to normalised SQL Server tables www.axioworks.com/SQList                    Softw.
                                                                                                                                             Makes complex
                                                                                                                                             logistics simple
                                                                                                                                             Probeer nu onze
        25. What is NOT NULL Constraint?
                                                                                                                                             software!
                                                                                                                                             www.adaption-it.nl
             A NOT NULL constraint enforces that the column will not accept null values. The not null constraints are used to
                                                                                                                                             NTBackup Made
             enforce domain integrity, as the check constraints.
                                                                                                                                             Easy
                                                                                                                                             Overcome ntbackup
                                                                                                                                             limitations Schedule
        26. How to get @@ERROR and @@ROWCOUNT at the same time?                                                                              backups easily! Free
                                                                                                                                             trial
                                                                                                                                             www.ntbackup.info
             If @@Rowcount is checked after Error checking statement then it will have 0 as the value of @@Recordcount as it
             would have been reset. And if @@Recordcount is checked before the error-checking statement then @@Error would
                                                                                                                                             Interview Tips
             get reset. To get @@error and @@rowcount at the same time do both in same statement and store them in local                     Looking for a Career
             variable.                                                                                                                       Change? Find Options
                                                                                                                                             & Opportunities for
             SELECT @RC = @@ROWCOUNT, @ER = @@ERROR                                                                                          Free.
                                                                                                                                             www.BetterCareerSearch.com


        27. What is a Scheduled Jobs or What is a Scheduled Tasks?
                                                                                                                                             Go Power
                                                                                                                                             Dynamometers
             Scheduled tasks let user automate processes that run on regular or predictable cycles. User can schedule                        New GPR557 Engine
             administrative tasks, such as cube processing, to run during times of slow business activity. User can also                     Dynamometer Diesel
             determine the order in which tasks run by creating job steps within a SQL Server Agent job. E.g. back up database,              Dynamometers
                                                                                                                                             www.gopowersystems.com
             Update Stats of Tables. Job steps give user control over flow of execution. If one job fails, user can configure SQL
             Server Agent to continue to run the remaining tasks or to stop execution.
                                                                                                                                             Display Dress
                                                                                                                                             Form
        28. What are the advantages of using Stored Procedures?                                                                              from Traditional to
                                                                                                                                             Modern Wood & Metal
                                                                                                                                             bases
                                                                                                                                             www.SuperiorModel.com
                 1.   Stored procedure can reduced network traffic and latency, boosting application performance.

                 2.   Stored procedure execution plans can be reused, staying cached in SQL Server's memory, reducing server
                      overhead.

                 3.   Stored procedures help promote code reuse.

                 4.   Stored procedures can encapsulate logic. You can change stored procedure code without affecting clients.

                 5.   Stored procedures provide better security to your data.



        29. What is a table called, if it has neither Cluster nor Non-cluster Index? What is it used for?


             Unindexed table or Heap. Microsoft Press Books and Book on Line (BOL) refers it as Heap. A heap is a table that
             does not have a clustered index and, therefore, the pages are not linked by pointers. The IAM pages are the only
             structures that link the pages in a table together. Unindexed tables are good for fast storing of data. Many times it
             is better to drop all indexes from table and then do bulk of inserts and to restore those indexes after that.



        30. Can SQL Servers linked to other servers like Oracle?


             SQL Server can be linked to any server provided it has OLE-DB provider from Microsoft to allow a link. E.g. Oracle
             has an OLE-DB provider for oracle that Microsoft provides to add it as linked server to SQL Server group.




http://www.indiabix.com/technical/sql-server-common-questions/5[08/29/2012 4:08:33 PM]
SQL Server - Common Interview Questions and Answers Page 5


        < Prev 1      2    3    4   5    6   Next >




                          Data Masking Software
               Secure your sensitive data with Grid-Tools'
                        Enterprise Data Masking
                          www.grid-tools.com




                                        © 2008-2012 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy


                                                              Contact us: info@indiabix.com        Follow us on twitter!


                                                                            Bookmark to:




http://www.indiabix.com/technical/sql-server-common-questions/5[08/29/2012 4:08:33 PM]

Sql server common interview questions and answers page 5

  • 1.
    SQL Server -Common Interview Questions and Answers Page 5 Search Aptitude ? Reasoning ? Verbal Ability GK Puzzles Programming ? Engineering Medical ? Interview Online Test Ads by Google SQL Server - Common Interview Questions and Answers SQL Server @ : Home > Technical Interview > SQL Server Common Questions > Interview Questions SQL Server Manager Database Management WinSQL - A Homogeneous Solution for Heterogeneous Environment. www.synametrics.com SQL Server Tools SQL Server Training Access Videos, Articles and More. Join the SSWUG.ORG Community Today! www.sswug.org Consulting Case Prep Interactive interview prep: math drills, frameworks & market-sizing www.casequestions.com Adaption Business Export SharePoint to SQL Live export of SharePoint lists to normalised SQL Server tables www.axioworks.com/SQList Softw. Makes complex logistics simple Probeer nu onze 25. What is NOT NULL Constraint? software! www.adaption-it.nl A NOT NULL constraint enforces that the column will not accept null values. The not null constraints are used to NTBackup Made enforce domain integrity, as the check constraints. Easy Overcome ntbackup limitations Schedule 26. How to get @@ERROR and @@ROWCOUNT at the same time? backups easily! Free trial www.ntbackup.info If @@Rowcount is checked after Error checking statement then it will have 0 as the value of @@Recordcount as it would have been reset. And if @@Recordcount is checked before the error-checking statement then @@Error would Interview Tips get reset. To get @@error and @@rowcount at the same time do both in same statement and store them in local Looking for a Career variable. Change? Find Options & Opportunities for SELECT @RC = @@ROWCOUNT, @ER = @@ERROR Free. www.BetterCareerSearch.com 27. What is a Scheduled Jobs or What is a Scheduled Tasks? Go Power Dynamometers Scheduled tasks let user automate processes that run on regular or predictable cycles. User can schedule New GPR557 Engine administrative tasks, such as cube processing, to run during times of slow business activity. User can also Dynamometer Diesel determine the order in which tasks run by creating job steps within a SQL Server Agent job. E.g. back up database, Dynamometers www.gopowersystems.com Update Stats of Tables. Job steps give user control over flow of execution. If one job fails, user can configure SQL Server Agent to continue to run the remaining tasks or to stop execution. Display Dress Form 28. What are the advantages of using Stored Procedures? from Traditional to Modern Wood & Metal bases www.SuperiorModel.com 1. Stored procedure can reduced network traffic and latency, boosting application performance. 2. Stored procedure execution plans can be reused, staying cached in SQL Server's memory, reducing server overhead. 3. Stored procedures help promote code reuse. 4. Stored procedures can encapsulate logic. You can change stored procedure code without affecting clients. 5. Stored procedures provide better security to your data. 29. What is a table called, if it has neither Cluster nor Non-cluster Index? What is it used for? Unindexed table or Heap. Microsoft Press Books and Book on Line (BOL) refers it as Heap. A heap is a table that does not have a clustered index and, therefore, the pages are not linked by pointers. The IAM pages are the only structures that link the pages in a table together. Unindexed tables are good for fast storing of data. Many times it is better to drop all indexes from table and then do bulk of inserts and to restore those indexes after that. 30. Can SQL Servers linked to other servers like Oracle? SQL Server can be linked to any server provided it has OLE-DB provider from Microsoft to allow a link. E.g. Oracle has an OLE-DB provider for oracle that Microsoft provides to add it as linked server to SQL Server group. http://www.indiabix.com/technical/sql-server-common-questions/5[08/29/2012 4:08:33 PM]
  • 2.
    SQL Server -Common Interview Questions and Answers Page 5 < Prev 1 2 3 4 5 6 Next > Data Masking Software Secure your sensitive data with Grid-Tools' Enterprise Data Masking www.grid-tools.com © 2008-2012 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy Contact us: info@indiabix.com Follow us on twitter! Bookmark to: http://www.indiabix.com/technical/sql-server-common-questions/5[08/29/2012 4:08:33 PM]