SQL SERVER – 2008 – Interview Questions and Answers Complete List Download
SQL Server Interview Questions and Answers Print Book Available (207 Pages) | Sample Chapters Download SQL Server 2008 Interview Questions and Answers Complete List UPDATE: This article series has...
View ArticleSQL SERVER – Guidelines and Coding Standards Part – 1
Use “Pascal” notation for SQL server Objects Like Tables, Views, Stored Procedures. Also tables and views should have ending “s”. Example: UserDetails Emails If you have big subset of table group than...
View ArticleSQL SERVER – Guidelines and Coding Standards Complete List Download
SQL SERVER – Guidelines and Coding Standards complete List Download Coding standards and guidelines are very important for any developer on the path of successful career. A coding standard is a set of...
View ArticleSQL SERVER – Interesting Observation about Order of Resultset without ORDER BY
Today I observed very interesting little thing about SQL Server and I felt that I should share this with my readers. I ran following two queries and found that I am getting different result-set. When I...
View ArticleSQL SERVER – Observation – Effect of Clustered Index over Nonclustered Index
Today I came across very interesting observation while I was working on query optimization. Let us run the example first. Make sure to to enable Execution Plan (Using CTRL + M) before running...
View ArticleSQL SERVER – Introduction to Force Index Query Hints – Index Hint
This article, I will start with disclaimer instead of having it at the end of article. “SQL Server query optimizer selects the best execution plan for a query, it is recommended to use query hints by...
View ArticleSQL SERVER – Introduction to Force Index Query Hints – Index Hint – Part2
In my previous article SQL SERVER – Introduction to Force Index Query Hints – Index Hint I have discussed regarding how we can use Index Hints with any query. I just received email from one of my...
View ArticleSQL SERVER – Observation – Effect of Clustered Index over Nonclustered Index
Note: This article is re-write of my previous article SQL SERVER – Observation – Effect of Clustered Index over Nonclustered Index. I have received so many request that re-write it as it is little...
View ArticleSQL SERVER – 2008 – Find Relationship of Foreign Key and Primary Key using...
While searching for how to find Primary Key and Foreign Key relationship using T-SQL, I came across my own blog article written earlier SQL SERVER – 2005 – Find Tables With Foreign Key Constraint in...
View ArticleSQL SERVER – How to Drop Primary Key Contraint
One area that always, unfailingly pulls my interest is SQL Server Errors and their solution. I enjoy the challenging task of passing through the maze of error to find a way out with a perfect solution....
View ArticleSQL SERVER – Difference Between Candidate Keys and Primary Key
Let us first try to grasp the definition of the two keys. Candidate Key – A Candidate Key can be any column or a combination of columns that can qualify as unique key in database. There can be multiple...
View ArticleSQL SERVER – Clustered Index on Separate Drive From Table Location
How to improve performance of SQL Server Queries is a common topic of discussion among many of us. Much has been said, much has been discussed. Few days back, I had an interesting discussion with one...
View ArticleSQL SERVER – Two Methods to Retrieve List of Primary Keys and Foreign Keys of...
There are two different methods of retrieving the list of Primary Keys and Foreign Keys from database. Method 1: INFORMATION_SCHEMA SELECT DISTINCT Constraint_Name AS [Constraint], Table_Schema AS...
View ArticleSQL SERVER – Puzzle – Write Script to Generate Primary Key and Foreign Key
In one of my recent projects, a large database migration project, I confronted a peculiar situation. SQL Server tables were already moved from Database_Old to Database_New. However, all the Primary Key...
View ArticleSQL SERVER – Discussion – Effect of Missing Identity on System – Real World...
About a week ago, SQL Server Expert, Imran Mohammed, provided a script, which will list all the missing identity values of a table in a database. In this post, I asked my readers if any could write a...
View ArticleSQL SERVER – Difference Between Candidate Keys and Primary Key
Introduction Not long ago, I had an interesting and extended debate with one of my friends regarding which column should be primary key in a table. The debate instigated an in-depth discussion about...
View ArticleSQL SERVER – Disable CHECK Constraint – Enable CHECK Constraint
Foreign Key and Check Constraints are two types of constraints that can be disabled or enabled when required. This type of operation is needed when bulk loading operations are required or when there is...
View ArticleSQL SERVER – A Common Design Problem – Should the Primary Key Always be a...
In SQL Server, whenever we create any key, a Primary Key automatically creates clustered index on the same. I like this feature and I use this feature every now and then. The question is does the...
View ArticleSQL SERVER – Create Primary Key with Specific Name when Creating Table
It is interesting how sometimes the documentation of simple concepts is not available online. I had received email from one of the reader where he has asked how to create Primary key with a specific...
View ArticleSQL SERVER – GUID vs INT – Your Opinion
I think the title is clear what I am going to write in your post. This is age old problem and I want to compile the list stating advantages and disadvantages of using GUID and INT as a Primary Key or...
View Article