How to retrieve roles from a Database

If you have environment where you restrict access to database objects based on user roles and if you have a lot of databases on different servers in the same domain.  The following script can generate roles from a given database in a format that can be used to create roles on different servers where the […]

2003-05-14

171 reads

How to get Foreign keys

If you ever have been put in a situation where your database has a lot of objects and some of those do not have primary keys, trying to find feels like needle in the haystack.  I have modified the script contributed by Mr.Tandrei and Mr.Rahul sharma.  The following script gives all the tables that do […]

2003-04-17

136 reads

Blogs

The Diverse Data Platform–Dativerse.io

By

The other day I got a note from Ben Weissman the other day that...

Extended Events and Azure SQL Database

By

Knowledge of how your system behaves is vital to better control, maintain, and grow...

Daily Coping 19 Apr 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Read the latest Blogs

Forums

Replication - not all columns are updating

By screenshot

I've set up replication but I'm having difficulties in my testing. I've changed 3...

The Security of Source Code

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Security of Source Code

Running SSIS in ADF

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Running SSIS in ADF

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers