Patrick Slesicki


Technical Article

Select Group Members from Logins

Know who all the individual group members are for a given WINDOWS_GROUP login. This script uses the sys.xp_logininfo procedure to find group members for each login on an instance. This is useful when attempting to remove orphaned WINDOWS_LOGINS. May have issues working across your logged in domain.

1 (1)

You rated this post out of 5. Change rating

2020-03-23 (first published: )

1,583 reads

Technical Article

Orphaned Users Search and Destroy

This script will find all orphaned users on all databases on an instance, and generate a script to drop each user. Simply execute, copy the values from the DropScript column to a new SSMS window and execute. There are two risks with this script. Use with caution: This script attempts to take into account users […]

You rated this post out of 5. Change rating

2020-03-16 (first published: )

1,237 reads

Technical Article

String Search

The script searches through every column of every record in a database to find a value. It works with numbers too. Simply assign a value to @MyString. Indicate what datatype(s) you wish to search through, and indicate if you want wildcards, and execute. The search is smart and will only search through columns where @MyString is […]

3 (3)

You rated this post out of 5. Change rating

2020-03-05 (first published: )

1,163 reads

Blogs

Optimize Azure Fabric Pipelines with This Key Spark Setting

By

Boost Your Azure Fabric Pipelines: Don’t Overlook This Crucial Spark Setting Are your Azure...

SQL Server Post-Install Configurations

By

The SQL Server installer has gotten better: tempdb configuration, MAXDOP, and even max memory...

How Vastu Principles Can Inspire Smarter Database Administration: A Holistic Approach to Data Architecture

By

In the fast-paced world of IT, Database Administrators (DBAs) are the unsung heroes who ensure that...

Read the latest Blogs

Forums

How a Legacy Logic Choked SQL Server in a 30-Year-Old Factory

By Chandan Shukla

Comments posted to this topic are about the item How a Legacy Logic Choked...

Monitor SQL Server using Zabbix

By Pablo Echeverria

Comments posted to this topic are about the item Monitor SQL Server using Zabbix

Archiving data older than 5 years

By Andre 425568

Hi We have databases with data stored for over 20 years, this is required...

Visit the forum

Question of the Day

TCP Provider Errors in SQL Server

You're troubleshooting a connectivity issue between a client application and a remote SQL Server instance. The client receives a "provider: TCP Provider, error: 0 - No such host is known" message. You verify that SQL Server is running and reachable on the server. The SQL Server instance is configured with a named instance and uses dynamic ports. Which of the following steps is most likely to resolve the issue?

See possible answers