Just a day ago, while working with some inventory related projects, I faced one interesting situation. I had to find TOP 1 and BOTTOM 1 record together. I right away that I should just do UNION but then I realize that UNION will not work as it will only accept one ORDER BY clause. If you specify more than one ORDER BY clause. It will give an error. Let us see how we can retrieve top and bottom rows together.
SQL SERVER – Transfer The Logins and The Passwords Between Instances of SQL Server 2005
This question was asked to me by one of reader. “I just upgraded my server with better hardware and newer operating system. How can I transfer the logins and the passwords between two of my SQL Server?” I think Microsoft has wonderful documentation for this issue. kb 918992 I will…
Read MoreSQL SERVER – Introduction to SQL Server Encryption and Symmetric Key Encryption Tutorial
SQL Server 2005 provides encryption as a new feature to protect data against the attacks of hackers. Hackers may be able to get hold of the database or tables, but they wouldn’t understand the data or be able to use it. It is very important to encrypt crucial security related…
Read MoreSQLAuthority News – SQL Server 2008 R2 Support Ends on July 9, 2019
It is indeed true Microsoft will official support ends of the product on July 9, 2019. Comprehensive Database Performance Health Check.Â
SQL SERVER – SELECT 1 vs SELECT * – An Interesting Observation
Many times I have seen issue of SELECT 1 vs SELECT * discussed in terms of performance or readability while checking for existence of rows in table. I ran quick 4 tests about this observed that I am getting same result when used SELECT 1 and SELECT *. I think smart readers of this blog will come up the situation when SELECT 1 and SELECT * have different execution plan when used to find existence of rows.
SQLAuthority News – Latest SQL Server Management Studio Blogs
SQL Server Management Studio is an amazing product and I am personally a big fan of the same. Here are the few latest blog written on the same subject.