[Note from Pinal]: This is a 100th episode of Notes from the Field series.
SQL SERVER – Looking Forward to Meeting you at SQLPASS 2015
If you are going to at SQLPASS 2015, Seattle, I am looking forward to meet you. I will be there and presenting two technology sessions. Here are the details of my sessions. I will be very happy if you are at SQLPASS and attend my session. If you see me…
Read MoreSQL SERVER – Strange SQL Transaction called UpdateLoginStats
I was preparing a demo for my upcoming presentation which is about couple of weeks ahead. While doing a stress test, I was looking at profiler and found that for every login there is an additional SQL transaction which is having ObjectName as UpdateLoginStats appearing even before Audit Login. Initially…
Read MoreSQL SERVER – To Find Events Mapped to Channels in Extended Events
I have outlined a number of blogs here that point to the basics of working with Extended Events. Some of them also detail you some specific scenarios that you can use inside your environments.
Interview Question of the Week #040 – Difference Between Unique Index vs Unique Constraint
Question: What is the difference between unique index and unique constraint? Answer: Add Unique Constraint ALTER TABLE dbo.<tablename> ADD CONSTRAINT <namingconventionconstraint> UNIQUE NONCLUSTERED ( <columnname> ) ON [PRIMARY] Add Unique Index CREATE UNIQUE NONCLUSTERED INDEX <namingconventionconstraint> ON dbo.<tablename> ( <columnname> ) ON [PRIMARY] There is no difference between Unique Index…
Read MoreSQL SERVER – Trick – Running SSMS With Different Windows Account
Recently in one of my interaction with a DBA inside a big financial organization, I was surprised to see that the administrator was logging into a desktop / server using a different credential. What baffled me was the fact that he was logging off. I immediately asked, why are you…
Read MoreSQL SERVER – Database Testing and Waitfor Delay – Notes from the Field #099
[Note from Pinal]: This is a 99th episode of Notes from the Field series. In this episode we are going to learn something very simple but effective about database testing. Database testing is one of the most critical elements for any developer or DBA. If you do not test your code, there are…
Read MoreSQL SERVER – Why Should You Not to Use Old Style JOIN?
If you want to JOIN two tables you can do it in two ways. One using ANSI compliant INNER JOIN and another with old style join But it is advisable not to use old style join. Here is the reason. Let us create the following data sets CREATE TABLE item_master(item_id…
Read MoreSQL SERVER – SSMS Query Command(s) completed successfully without ANY Results – Part 2
What do you do when you encounter something that you didn’t expect? A lot of times such experiences take you to a state of shock or a state of bafflement. The curiosity sometimes pushes you off the cliff to understand why certain behaviors occur. I am fortunate that I get…
Read More


