18
KAASHIV INFOTECH The Asia, India, Tamil Nadu Book Of Record Holders SQL SERVER –Booklet 9 - Gives you the interview tips in SQL Server SQL SERVER Interview Questions-2014

Sql interview question part 9

Embed Size (px)

DESCRIPTION

Learn about SQL Server Interview Questions for further carrier development.

Citation preview

Page 1: Sql interview question part 9

KAASHIV INFOTECH

The Asia, India, Tamil Nadu Book Of Record Holders

SQL SERVER –Booklet 9- Gives you the interview tips in SQL Server

SQL SERVER Interview Questions-2014

Page 2: Sql interview question part 9

KAASHIV INFOTECH

Welcomes you to the Expert Voice Corner

Mr.J.Venkatesan PrabuVenkatesan Prabu Jayakantham (venkat) has more than 8 years experience in the Microsoft Technologies such as VB.Net, ASP.Net, C#.net, SSIS, SSAS, ADO.Net, etc., He is the Managing Director of KAASHIVINFOTECH (http://www.kaashivinfotech.com/),a software company in Chennai. Before that, he worked in HCL Technologies (India and Australia) for six years as Project Lead. As a service motive, Venkat contributed more than 700 articles which is read by the developers in 170 countries (400 developers per day) (http://venkattechnicalblog.blogspot.com/). Aligned with KaaShiv InfoTech’s mission,he met more than 20,000 young minds and spreaded Microsoft Technologies / Career guidance programs. Venkat won many awards in his career, which includes Prestigious Microsoft MVP (Most Valuable Professional) award for the years 2008,2009,2010,2011,2012,2013 and won many awards. List of other awards in his career,

Page 3: Sql interview question part 9

Microsoft certified Smart .Net Candidate in 2004 Most valuable member for dotnetspider site in 2007 HCL SQL Subject Matter expert (SME - SQL Server) for the year (2008,2009) HCL Special contribution award winner on Dotnet skills for year(2008) HCL

SQL Knowledge Champion for the year 2009 Mind Cracker MVP on SQLServer –2010 for the year 2010,2011 INETA champion - Gold Member – 2010 for the year 2010 HCL Service

Contribution Award for the year 2010 Leading Lights "Rising Star" award from Common Wealth Bank, Australia for the

year 2010

TECHNICAL CERTIFICATION

Cisco certified Network Associate (CCNA) – 2004 Microsoft Certified Application Developer (MCAD) – 2005

Page 4: Sql interview question part 9

ACKNOWLEDGEMENT

I would like to thank my family members for their support and encouragement. Without their support it would be impossible for me to publish this e-book. I would also like to thank my KaaShiv InfoTech team for their support to publish this e-book.

DISCLAIMER

All rights reserved. No part of this book may be copied, adapted, abridged or stored in any retrieval system, computer system, photographic or other system or transmitted in any form or by any means without the prior written permission of the copyright holders. Any breach will entail legal action and permission without further notice.    

Page 5: Sql interview question part 9

1. How many f i les can a Database contain in SQL Server? How many types of data f i les exists in SQL Server? How many of those f i les can exist for a single database?A Database can contain a maximum of 32,767 files.There are Primarily 2 types of data files Primary data file and Secondary data file(s)There can be only one Primary data file and multiple secondary data files as long as the total # of files is less than 32,767 files

2. What is DCL?DCL stands for Data Control Language.

3. What are the commands used in DCL?GRANT, DENY and REVOKE.

4. What is Fil l Factor?Fill Factor is a setting that is applicable to Indexes in SQL Server. The fill factor value determines how much data is written to an index page when it is created / rebuilt.

Page 6: Sql interview question part 9

5. What is the default f i l l factor value?By default the fill factor value is set to 0.

6. Where do you f ind the default Index f i l l factor and how to change it?The easiest way to find and change the default fill factor value is from Management Studio, right-click the SQL Server and chooses properties. In the Server Properties, choose Database Settings, you should see the default fill factor value in the top section. You can change to a desired value there and click OK to save the changes.The other option of viewing and changing this value is using sp_configure.

7. What  is a system database and what is a user database?System databases are the default databases that are installed when the SQL Server is installed. Basically there are 4 system databases: Master, MSDB, TempDB and Model. It is highly recommended that these databases are not modified or altered for smooth functioning of the SQL System.A user database is a database that we create to store data and start working with the data.

Page 7: Sql interview question part 9

8. What are the recovery models for a database?

There are 3 recovery models available for a database. Full, Bulk-Logged and Simple are the three recovery models available.

9. What is the importance of a recovery model?

Primarily, recovery model is chosen keeping in view the amount of data loss one can afford to. If one expects to have minimal or no data loss, choosing the Full recovery model is a good choice. Depending on the recovery model of a database, the behaviour of database log file changes. I would recommend you read more material on log backups and log file behaviour and so on to understand in depth

10. What is Replication?

Replication is a feature in SQL Server that helps us publish database objects and data and copy (replicate) it to one or more destinations. It is often considered as one of the High-Availability options. One of the advantages with Replication is that it can be configured on databases which are in simple recovery model.

Page 8: Sql interview question part 9

11. What the dif ferent types of Replication and why are they used?

There are basically 3 types of replication: Snapshot, Transactional and Merge Replication. The type of Replication you choose depends on the requirements and/or the goals one is trying to achieve. For example Snapshot Replication is useful only when the data inside the tables does not change frequently and the amount of data is not too large, such as a monthly summary table or a product list table etc. Transactional Replication would useful when maintaining a copy of a transactional table such as sales order tables etc. Merge Replication is more useful in case of remote / distributed systems where the data flow can be from multiple sites, for example sales done at promotional events which might not be connected to the central servers always.

12. What the dif ferent components in Replication and what is their use?

The 3 main components in Replication are Publisher, Distributor and Subscriber. Publisher is the data source of a publication. Distributor is responsible for distributing the database objects to one or more destinations. Subscriber is the destination where the publisher’s data is copied / replicated.

 

Page 9: Sql interview question part 9

13. What the dif ferent Topologies in which Replication can be configured?

Replication can be configured in any topology depending keeping in view of the complexity and the workload of the entire Replication. It can be any of the following:

Publisher, Distributor and Subscriber on the same SQL Instance.Publisher and Distributor on the same SQL Instance and Subscriber on a separate Instance.Publisher, Distributor and Subscriber on individual SQL Instances.

14. How do you open a Cluster Administrator?

From Start -> Run and type CluAdmin (case insensitive) and the Cluster Administrator console is displayed OR you can also go to Start -> All programs -> Administrative Tools -> Cluster Administrator

Page 10: Sql interview question part 9

15. What are the dif ferent ways you can create Databases in SQL Server?T-SQL; Create Database command.Using Management StudioRestoring a database backupCopy Database wizard

Page 11: Sql interview question part 9

KaaShiv InfoTech Offers Best Inpant Training in Chennai. 

The training at KAASHIV INFOTECH focus on developing the technical oriented concepts that turn graduates into employable assets. Handled only by professionals from MNC companies, we know how to equip you with strong technologies fundamentals.

INPLANT TRAINING SCHEDULE FOR CSE/IT/MCA STUDENTS

Day Programme

 Day 1 BigData (Practical Demos)

Day 2Windows 8 App Development (Practical Demos)

Day 3Ethical Hacking (Facebook Hack,Server/Website Hacking(20 Attacks)

Day 4Cloud Computing (Live Server Demo,Live Pjt Implementation)

Day 5CCNA (-Networking-Router Configurations Practical Demo)

Page 12: Sql interview question part 9

INPLANT TRAINING SCHEDULE FOR ELECTRONIC/ELECTRICAL/EIE STUDENTS:

Day Programme

Day 1 Embedded System  (Embedded Program Designing ,Chip Burning)

Day 2Wireless System  (Device Designing,Controlling Fans with Wireless Sensors)

Day 3 CCNA  (-Networking-Router Configurations Practical Demo)

Day 4 Ethical Hacking  (Facebook Hack,Server/Website Hacking(20 Attacks)

Day 5 Matlab  (Capture Image,Processing, Animate Images-Practical Demos)

Page 13: Sql interview question part 9

MECHANICAL/CIVIL INPLANT TRAINING SCHEDULE:

Day Programme

Day 1 Aircraft Designing

Day 2 Vehicle Movement in Airports

Day 3 3D Packaging Designs

Day 4 3D Modeling

Day 5 3D Window Shading

Page 14: Sql interview question part 9

Tags: inplanttraining in chennai,Best inplanttraining Program in Chennai Anna Nagar,Best and Effective inplanttraining Program in Chennai at Anna Nagar ,inplanttraining Program for Engineering Students , inplanttraining Program for Arts and Science Students , inplanttraining Program for BE Students , inplanttraining Program for Information Technology Students ,inplanttraining Program in Chennai , Best and Effective inplanttraining Program in Chennai,Best and good inplanttraining Program in Chennai,inplanttraining Program for Computer Science Students, inplanttraining Program for Electronics and Communication Students,inplanttraining Program for Electrical and Electronics Students , inplanttraining Program for Engineering Studentsin anna nagar , inplanttraining Program for Arts and Science Students in anna nagar,Effective inplanttraining Program,Effective and Free inplanttraining Program,best inplanttraining in chennai near rountana,best inplanttraining for engineering students in chennai,best inplanttraining in anna nagar,inplanttraining for arts and science students in tamil nadu,best inplanttraining for arts and science students in anna nagar near rountana,best inplanttraining for ug graduates,best inplanttraining for pg graduates,best inplanttraining for b.e/b.tech students,best inplanttraining for ug graduates in chennai,best inplanttraining for ug graduates in anna nagar,best inplanttraining for ug graduates in tamil nadu,best inplanttraining for pg graduates in chennai,

Page 15: Sql interview question part 9

best inplanttraining for pg graduates in anna nagar,best inplanttraining for pg graduates in tamil nadu,inplanttraining for cse students,inplanttraining for it students,inplanttraining for ece students,inplanttraining for eee students,inplanttraining on android in chennai,inplanttraining on java in chennai,inplanttraining on embedded systems in chennai,inplanttraining on matlab in chennai,inplanttraining on .net in chennai,inplanttraining on android in anna nagar,inplanttraining on java in anna nagar,inplanttraining on embedded systems in anna nagar,inplanttraining on matlab in anna nagar,inplanttraining on .net in anna nagar,best summer inplanttraining for arts and science ug graduates in chennai,best summer inplanttraining for arts and science pg graduates in chennai,best summer inplanttraining for engineering ug graduates in chennai,best summer inplanttraining for engineering pg graduates in chennai,best summer inplanttraining for arts and science ug graduates in anna nagar,best summer inplanttraining for arts and science pg graduates in anna nagar,best summer inplanttraining for engineering ug graduates in anna nagar,best summer inplanttraining for engineering pg graduates in anna nagar,best inplanttraining for mba graduates in chennai,best inplanttraining fo mca graduates in chennai,best inplanttraining for mba graduates in anna nagar,best inplanttraining for mca graduates in anna nagar,best summer inplanttraining for mba graduates in chennai,best summer inplanttraining for mca graduates in chennai,best summer inplanttraining for mba graduates in anna nagar, best summer inplanttraining for mba graduates near rountana,best summer inplanttraining for mca graduates near rountana

Page 16: Sql interview question part 9

Address: KAASHIV INFO TECHShivanantha Building,X41, 5th Floor,2nd Avenue,(Near Ayyappan Temple)Anna Nagar, Chennai = 600040.Send Us Your Request Email To [email protected],[email protected],[email protected] Number : 9840678906 ;; 9003718877 ;; 9962345637 ;

Visit our other websites:http:// inplanttrainingchennai.com/ - Inplant Training Portalhttp:// inplanttrainingchennai.com/ - Internship Portaljobsanddumps.com – Job Portalhttps://plus.google.com/u/0/108546120202591604585 https://plus.google.com/u/0/b/110228862465265998202/dashboard/overview

https://plus.google.com/u/0/b/117408505876070870512/dashboard/overview

Page 17: Sql interview question part 9

https://plus.google.com/u/0/b/104468163439231303834/dashboard/overview https://plus.google.com/u/0/b/117640664472494971423/dashboard/overview

KaaShiv InfoTech Facebook Page https://www.facebook.com/KaaShivInfoTech Inplant Training Program in Chennai https://www.facebook.com/pages/Inplant-Training-Program-in-Chennai/1402097696706380

Internship in Chennai

https://www.facebook.com/pages/Internship-in-Chennai-KaaShiv/1446147235603704

Page 18: Sql interview question part 9

Inplant Training

https://www.facebook.com/pages/Inplant-Training/256116284550327