Quantcast
Channel: SQL Server DBA
Browsing all 80 articles
Browse latest View live

How to capture SQL Server database RESTORE details with Extended Events

If you want to troubleshoot a slow SQL Server Restore or just find out more about all the restore steps , use these techniques to give you an insight  Code to create the Event Session, Add Event - note...

View Article



Image may be NSFW.
Clik here to view.

How to recover SSMS auto recover scripts after crash

Question: On my laptop - SQL server SSMS crashed a couple of days ago and I lost the scripts I was working on. Is it possible to recover those scripts?Answer:For SSMS 18,the files  can be found at this...

View Article

How to fix BACKUP LOG cannot be performed because there is no current...

Question: I'm attempting to create a backup of a SQL Server read only database , but getting an error message - BACKUP LOG cannot be performed because there is no current database backupWhy is this...

View Article

How to fix Invalid comparison due to NO COLLATION

Question: Got this message in the SQL Error Logs Error: 3624, Severity: 20, State: 1.A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is...

View Article

Array-based replication versus vSphere Replication

In large scale migrations DBAs are asked to make decisions with far-reaching and with unforeseen consequences. Deciding which approach to take is influenced by a number of factors including footprint...

View Article


AWS-RDS SQL Server limitations

Some AWS  RDS SQL Server limitations - Some ports are reserved for Amazon RDS, and you can't use them when you create a DB instance.- Amazon RDS for SQL Server doesn't support importing data into the...

View Article

How can I execute t-sql with a Proxy account

Question: I have some t-sql code added to a job step on a SQL Server Agent job. The problem is I need to run the code as RUNAS . I though of executing the job with a proxy account - so progressed with...

View Article

How to resolve a hostname or ip address with Powershell

Question: How can I use Powershell to return DNS information , specifically the fully qualified name of the server? Answer: These are some examples you could incorporate into your Powershell Scripts ....

View Article


How to get Active Directory Group Scope - Local Domain, Global Group,...

Question : How can I find the Active Directory Group group scope -  Local Domain, Global Group, Universal Group with Powershell? Answer: Powershell  has a range of cmdlets to access and read the Active...

View Article


How to view the current Powershell session security permissions

Question: How to view the current Powershell session security permissions?  I'm trying to troubleshoot remote powershell commands and need to review the current powershell sessions standard...

View Article

How to add members to the Administrators group with Powershell

Question: I want to create a Powershell script to add an  Active Directory Group to the the local Administrator Group on a group of servers.  The login privileges to execute the script would be...

View Article

How to capture SQL login details with Extended Events

Question : I have to capture logon information details for a specific logon on a SQL Server.  Specifically - the client_hostname, nt_username & username. What i'm looking for is a log recording a...

View Article

How to start SSMS as a different Windows login

Question: I  am logged onto my desktop with my primary Active Directory ID.  I need to log onto a SQL Server with SQL Server Management Studio (SSMS) with another Active Directory ID - the alternative...

View Article


How to use Database Compatibility to increase your migration success

Microsoft's recommended SQL Server upgrade  workflow is to upgrade to the latest SQL Server but keep the source DB compatibility level, assess the workload impact via establishing a baseline and based...

View Article

SQL Server 2019 upgrade considerations

Benefits - Analyse the benefits of a SQL Server upgrade. Upgrades can be a significant effort , consideration should be given to  benefits and opportunity cost arising from dedicating resources to an...

View Article


How to copy Powershell data to Clipboard

Question: Is there a Powershell method of passing data to the Windows Clipboard ?  The aim is to extract data and then simply Ctl + V into an Excel spreadsheet .  Answer: It is possible to pass output...

View Article

How to get the SQL View definition

Question: I'm getting some errors in a BULK INSERT step - and I need to get the SQL View definition :  including the schema name , column_id , column name , data type , max length ,precision and...

View Article


Image may be NSFW.
Clik here to view.

My Top 4 sessions at PASS Data Community Summit 2021

I've registered for the Free PASS Data Community SUMMIT 2021 and there are some great sessions.  These are some of sessions  I'm scheduled to attend Accelerate SQL Server Migration to the AWS Cloud:...

View Article

Image may be NSFW.
Clik here to view.

Automatically Indexing Millions of Databases in Microsoft Azure SQL Database

Recently read an article paper describing the process of developing a system to Automatically Indexing Millions of Databases in Microsoft Azure SQL Database.Index Tuning is difficult , tuning indexes...

View Article

Image may be NSFW.
Clik here to view.

Run SSMS as a different user

Question : I've SQL Server Management Studio (SSMS) installed and attempting to run it as a different user. I'm doing the Right Click on the ssms.exe  - but can only see Run as Administrator , not Run...

View Article
Browsing all 80 articles
Browse latest View live




Latest Images