June 2025 Discount: Comprehensive Database Performance Health Check | Testimonials

Home
  • Consulting
  • Training
  • Free Videos
  • All Articles
    • Interview Questions and Answers
    • SQL Tips and Tricks
    • SQL Performance
    • SQL Puzzle
    • Big Data
    • Blog Stats
    • SQL Books
    • Search SQLAuthority
  • Downloads
  • Hire Me
  • Health Check

SQL SERVER – Be Careful with Logon Triggers – Don’t use Host_Name

April 14, 2018
Pinal Dave
SQL
SQL Error Messages, SQL Login, SQL Scripts, SQL Server, SQL Trigger, Starting SQL

Before you read further, let me warn you that Logon triggers are potentially evil and might also end up locking everyone out of the instance. Be careful! Don’t just copy paste the code and create the trigger, you might end up in downtime to fix the issue.

Recently, one of my blog readers sent an email to me asking a quick suggestion. He informed me that he is using a LOGON trigger to control the access to the server. Here is the code for the trigger.

Read More

SQL SERVER – Database Attach Failure – Msg 2571 – User ‘guest’ Does Not Have Permission to Run DBCC Checkprimaryfile.

March 14, 2018
Pinal Dave
SQL
SQL Error Messages, SQL Login, SQL Scripts, SQL Server, SQL Server DBCC, SQL Server Security

One of my clients was trying to recover from a disaster and wanted to attach the MDF and LDF files. While trying to do that, they encountered an error. In this blog we would learn about how to fix the error – User ‘guest’ does not have permission to run DBCC checkprimaryfile while attaching the database.

Read More

SQL SERVER – Create Catalog Error 911: Database ‘SSISDB’ Does Not Exist. Make Sure That he name is entered correctly

February 6, 2018
Pinal Dave
SQL
SQL Error Messages, SQL Login, SQL Profiler, SQL Scripts, SQL Server

Sometimes there are unexpected errors and it’s always fun to find the cause of them. In this blog, we would learn about fixing an error which I received while doing create catalog from SQL Server Management Studio.

Read More

SQL SERVER – Authentication in SQL Server (Windows and Mixed Mode) – GDPR Series

January 25, 2018
Pinal Dave
SQL Tips and Tricks
GDPR Compliance, SQL Login, SQL Server, SQL Server Security

On May 25, 2018, European privacy law is going to enforce new global standards for privacy rights, security, and compliance. This new regulation is known as GDPR – General Data Protection Regulations. Lots of users who are using SQL Server often wonder How to make SQL Server GDPR compliance? Before you read this blog post, I suggest you read my earlier blog post about here which explains everything about GDPR. This blog post we will take about Authentication in SQL Server (Windows and Mixed Mode) which is for GDPR Article 25.

Read More

SQL SERVER – SQL Vulnerability Assessment – Security Analysis

January 2, 2018
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Server, SQL Server Management Studio, SQL Server Security, SSMS

Microsoft has recently announced a very interesting feature for security of your SQL Server. I really loved this new feature – SQL Vulnerability Assessment. Unlike most of the other V1 features which MS releases, this time I really liked this particular feature. This feature not only provides the assessments but also the solutions.

Read More

SQL SERVER – Account Added Automatically in SQL Server Used by SharePoint

December 30, 2017
Pinal Dave
SQL Tips and Tricks
SharePoint, SQL Login, SQL Server, SQL Server Security

Earlier I wrote a blog about DBA doing detective work. SQL SERVER – Why We have an Audit, Trace in DATA Folder? What are These Files?. Now today there is another similar situation where the account is added automatically in SQL Server used by SharePoint.

Read More

SQL SERVER – List Users with System Admin (sysadmin) Rights – Part 2

December 20, 2017
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Login, SQL Scripts, SQL Server, SQL Server Security

Yesterday I shared a blog post where I discussed how to list all the users with the System Admin (sysadmin) rights. I have received a quite a few emails and comments on this subject. The comment which got the most attention is from SQL Expert Chris Mangrum. He has shared a very interesting script with modification from the original script where he has also included additional permission of Control Server.

Read More
Previous 1 2 3 4 5 6 7 … 9 Next
  • SQL Interview Q & A
  • Testimonials
  • Search
  • Privacy Policy

© 2006 – 2025 All rights reserved. pinal @ SQLAuthority.com

Go to mobile version