.bak
files from one server to another within the same domain and on a high-bandwidth connection, this PowerShell + robocopy script is optimized for speed and reliability.Welcome to SQLDBANow.com! This blog, created by Bandaru Ajeyudu, is dedicated to learning and sharing knowledge about SQL DBA and Azure SQL. Join us as we explore insights, tips, and best practices in the world of SQL Database Administration and Azure SQL.
Fast PowerShell Script to Copy Latest SQL Backups Over Network
Automate Emailing of Latest Excel Reports from Shared Folders Using PowerShell
Unable to Drop a User from SSISDB?
I ran into an issue when trying to drop a user from SSISDB (the Integration Services Catalog database).
The database principal has granted or denied permissions to catalog objects in the database and cannot be dropped.
The transaction ended in the trigger. The batch has been aborted.
How to solve it?
Find where the user has permissions
USE SSISDB
go
SELECT *
FROM catalog.object_permissions
WHERE grantee_sid = SUSER_SID('YourUserName');
--change YourUserName to your actual username
Revoke permissions
REVOKE READ ON OBJECT::[folder_name] TO [YourUserName];
REVOKE MODIFY ON OBJECT::[project_name] TO [YourUserName];
Drop the user
DROP USER [YourUserName];
SQL Server Config Manager Error "MMC could not create the snap-in
Hi, I have seen this error elsewhere online. I have gone to mmc to enable the snap in and I still have had no fix. My computer is running Windows Server 2022, SQL Server Express 2022, and SSMS. I have reinstalled, repaired, and all of the other tricks. Help!
How to Fix: 'Microsoft.ACE.OLEDB.12.0' Provider is Not Registered on the Local Machine
If you encounter the error:
'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
while importing Excel or CSV files into SQL Server, don't worry! This is a common issue caused by a missing or mismatched version of the Microsoft Access Database Engine.
Download the Microsoft Access Database Engine 2016 Redistributable
Go to the official Microsoft download page:
Microsoft Access Database Engine 2016 RedistributableSelect the version based on your system:
- 32-bit version (recommended even on 64-bit systems if you're using 32-bit SQL Server tools).
- 64-bit version (only if you're sure all tools are 64-bit).
Note: Using the 32-bit version resolves compatibility issues with tools like SQL Server Management Studio (SSMS), which often run in 32-bit mode.
Install Using Command Prompt (Silent Install)
Once downloaded, follow these steps to install properly:
Open Command Prompt as Administrator.
Navigate to the folder where the
.exe
file is downloaded.
AccessDatabaseEngine_X64.exe
), use the exact name.This will install the provider quietly without UI interruptions.
Restart Your Tools
After installation:
Restart SQL Server Management Studio (SSMS).
Try your import or export task again.
You should no longer see the 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error!