Feeds:
Posts
Comments

Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.

Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.

SQL Quiz

As part of performance tuning exercises, our developer always suggest to use SET based operations rather than procedural languages. One of the suggestions given as a substitute for hierarchical data structure was to use CTE. What are CTEs inside SQL Server, what are their advantages and how can you rewrite a subquery using CTEs?

Link to participate in SQL Quiz

Notes of Vinod Kumar

Common Table Expressions a.k.a CTEs are an important addition to SQL Server. Though CTE is available as an alternative for Views, Subqueries, there is a special case scenario for using CTEs. Tell us, how innovatively have you used CTEs? Can there be recursive CTEs? If yes, have you ever tried them?

Notes of Pinal Dave

CTEs are often confused with Temp Table and Subqueries, but there are more facts about this subject. While working with recursive CTEs, one has to make sure that they do not go into an infinite loop and stop after certain numbers of fixed iteration. SQL Server does have an option to limit the numbers of iteration; however, there is a default number which is associated with number of loops. CTEs are also very useful in terms of readability. I’ve started to use CTEs in many places, but before I began to practice CTEs, I made sure that I’d spend a good amount of time to learn about them, and so I did.

Additional Notes

SQL Server Interview Questions and Answers ISBN: 1466405643 Page#109-112
Common Table Expression (CTE) and Few Observation
Multiple CTE in One SELECT Statement Query
Delete Duplicate Rows
Simple Example of Recursive CTE
SQL SERVER – Simple Example of Recursive CTE – Part 2 – MAXRECURSION – Prevent CTE Infinite Loop
T-SQL Paging Query Technique Comparison (OVER and ROW_NUMBER()) – CTE vs. Derived Table

Prize

There are exciting prizes awaiting the winners. Click here for Prizes and Frequently Asked Questions.

Link to participate in SQL Quiz

Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.

Reference: Pinal Dave (http://blog.sqlauthority.com)

Community is the most motivating force for me. I have often found situations where I have done more and better things because there was community around me. My latest book SQL Server Interview Questions and Answers is the result of the community’s support and love. Without the wide acceptance of the community I would have never reached where I am. Thank you!

Recently, the kind folks of INETA APAC – Sanjay Shetty and Raj Chaudhuri – conducted an interview with myself and Vinod Kumar (co-author of my book). We had lots of fun during the interview. Sanjay asks questions which, even as an author, I did not think of. My hope is that talking more about our book will help the community in the same way they all helped motivate me to write this book.  Another benefit of the interview was that Raj always has questions which dig out the secrets of the book publishing business. Well, we answered each question candidly. When the interview was about to be over – we realized that book publishing is indeed long process and, just like us, many need help understanding this subject.

I know that I cannot be the only person who ever dreamed of becoming a published author. We would like to offer help to anybody who wants to write book. Writing this one book has taught us a lot and we are eager to share our hard-earned knowledge with you. If you have also written a technical book about computers, SQL Server, or just technology in general, I know that we will be able to help you in some way. Even if you are the sort of person who writes short stories in their free time, give us a try and we might be able to help you, too!

Once again: Thanks Sanjay and Raj for giving us the honor to be featured in an interview with you.

Reference: Pinal Dave (http://blog.sqlauthority.com)

Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.

Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.

SQL Quiz

Compliance is one of the non-negotiable things in this era. SQL Server has had so many options like C2 Auditing since the SQL Server 2000 days. With the advent of Policy Based Management inside SQL Server 2005, what are the different aspects involving PBM one needs to know?

Link to participate in SQL Quiz

Notes of Vinod Kumar

Tough Auditing is a great way to monitor SQL Server, but when you try to explore what all methods does the PBM give when compared to Auditing, Policy Based Management can help you take the management of SQL Server to the next level better than Auditing. Also, there are some interesting ways to extend and make your own custom policy using special commands. To learn more, explore these concepts and tell us your views.

Notes of Pinal Dave

Have you ever desired to know who has touched your data? In this tightly conformed world, it is very important to know who has an access to the data and which among the data has been accessed. There are important cases when some data are never accessed by anybody. Preventing data access is one story, while being a DBA who might have his best practices is another story. A DBA may never want the Auto Shrink to become activated in their databases. All these and more can be done using Policy Based Management.

Additional Notes

SQL Server Interview Questions and Answers ISBN: 1466405643 Page#154-155
Policy Based Management – Create, Evaluate and Fix Policies
Introduction to Policy Management – Enforcing Rules on SQL Server

Prize

There are exciting prizes awaiting the winners. Click here for Prizes and Frequently Asked Questions.

Link to participate in SQL Quiz

Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.

Reference: Pinal Dave (http://blog.sqlauthority.com)

Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.

Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.

SQL Quiz

Any database design can include only the Normal forms. But while a DBA performs a product deployment, it is critical to take care of certain factors for Index creation. With this noted, explain FILLFACTOR and PATFACTOR inside SQL Server. What are their uses and when would you use each of them?

Link to participate in SQL Quiz

Notes of Vinod Kumar

Tough FILLFACTOR is used from the side of performance tuning techniques. It also has an impact on storage needs – the IO increases for Reads if done incorrectly. This Hint has the information related to these notes. Is there a skill that you use regarding this matter? Feel free to share.

Notes of Pinal Dave

Fillfactor is an interesting concept. When I tell several DBA and developers that fillfactor 0 is the same as 100, I have seen them not believing what I said. An appropriate fillfactor can have a heavy impact on performance. The fillfactor can be adjusted at server level as well as at index level. A similar concept is PATFACTOR. I have seen it being abused, leading to a terrible performance on server. Aside from fillfactor, there are many additional performance tuning concepts one needs to master if performance is his primary concern for database.

Additional Notes

SQL Server Interview Questions and Answers ISBN: 1466405643 Page#151-153
SQL SERVER – What is Fill Factor and What is the Best Value for Fill Factor
Fillfactor, Index and In-depth Look at Effect on Performance
Rebuild Every Index of All Tables of Database – Rebuild Index with FillFactor
Change Default Fill Factor For Index
Comparison Index Fragmentation, Index De-Fragmentation, Index Rebuild – SQL SERVER 2000 and SQL SERVER 2005

Prize

There are exciting prizes awaiting the winners. Click here for Prizes and Frequently Asked Questions.

Link to participate in SQL Quiz

Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.

Reference: Pinal Dave (http://blog.sqlauthority.com)

Year 2011 was a year of learning and opportunity for me. My recent book, SQL Server Interview Questions and Answers, has received such overwhelming love and support from all of you. While writing the book, I had two simple goals: (1) Master the Basics and (2) Ignite Learning. There was a constant request from the Community to take the learning of these books to the next level. Here is an article which discusses the Author’s Perspective.

Beyond Relational has come up with a very interesting concept – they have converted a few of the questions from my book into the SQL Quiz. The quiz is indeed focused on my two goals. In addition, it’s going to put the learning of the book to a higher stage. Looking at this novel concept, Vinod Kumar (Co-author) and I have decided to help every participant and reader by giving a few hints and suggestions to solve the quiz.

SQL Quiz

Though high availability is something critical for all large database deployments, there are other multiple options one can use. For today’s discussion, what is database mirroring option? What are the Database Mirroring enhancements done in SQL Server 2008 R2 edition? How is it different from Log shipping?

Link to participate in SQL Quiz

Notes of Vinod Kumar

DBM is a very famous method of HA options that I have seen enterprises use in their environments. The concepts are simple and well-explained. There are also fine-prints when implementing DBM, which need special attention.

Notes of Pinal Dave

“Is database mirroring a high-availability solution, or a disaster recovery solution?” When I ask this question, I keep on getting a different answer every single time. Database mirroring maintains two copies of a single database that must reside on different server instances of SQL Server Database Engine. Now, mirroring requires that the database has to be in full recovery mode and the database resides on different instances. A lesser known fact is that mirroring is also related to the Page Restore concept. Why not spend time to know what the main interesting factors related to database mirroring are? I’m sure it would be a worthwhile learning experience for you.

Additional Notes

SQL Server Interview Questions and Answers ISBN: 1466405643 Page#158-159, 166
Quick Note of Database Mirroring
Standby Servers and Types of Standby Servers
Mirroring Configured Without Domain

Prize

There are exciting prizes awaiting the winners. Click here for Prizes and Frequently Asked Questions.

Link to participate in SQL Quiz

Note: SQL Quiz, winners and prizes are administrated by Beyond Relational. The goal of this blog post is to provide additional learning pointers only.

Reference: Pinal Dave (http://blog.sqlauthority.com)

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 15,227 other followers