Skip to content

DBASco

Database & System Engineering Blog

  • Home
  • SQL Server
    • MSSQL Scripts
  • PowerShell
    • PowerShell Scripts
  • DBA Cheat Sheet
  • Other Posts
  • About
What is the USE Command in SQL Server?
SQL ServerTagged SQL Server Management Studio, SQL Syntax, SSMS, SSMS Tips1 Comment on What is the USE Command in SQL Server?

What is the USE Command in SQL Server?

December 30, 2023January 7, 2024

This post is intended to help explain the USE command in SQL Server. In short, the USE command allows you to change the context or scope of the database you are currently working on for a SQL query. When working […]

SQL Server Error: Database Cannot Be Opened. It Is in the Middle of a Restore.
SQL ServerTagged SQL Server DB Restores, SQL Server ErrorsLeave a Comment on SQL Server Error: Database Cannot Be Opened. It Is in the Middle of a Restore.

SQL Server Error: Database Cannot Be Opened. It Is in the Middle of a Restore.

December 24, 2023January 22, 2024

Database [DatabaseName] Cannot Be Opened. It Is in the Middle of a Restore is a common error in SQL Server that can happen when you are trying to query, alter or drop a database while it’s still in the middle […]

SQL Server Script: User Permissions Audit
SQL ServerTagged MSSQL Scripts, SQL Server Users and PermissionsLeave a Comment on SQL Server Script: User Permissions Audit

SQL Server Script: User Permissions Audit

December 23, 2023January 22, 2024

As a Database Administrator (DBA), managing and auditing user permissions is a crucial aspect of ensuring the security and integrity of a SQL Server environment. Having a script to check a user’s permissions quickly is key to day-to-day support as […]

Troubleshooting the “Index was out of range” Error in SSMS
SQL ServerTagged SQL Server Errors, SQL Server Management Studio, SSMSLeave a Comment on Troubleshooting the “Index was out of range” Error in SSMS

Troubleshooting the “Index was out of range” Error in SSMS

December 18, 2023April 28, 2024

This post is to share encounters with the “Index was out of range” error message while working in SQL Server Management Studio (SSMS), and to hopefully help you quickly resolve it error. If you get this error, your first troubleshooting […]

SQL Server: Get Current Date
SQL ServerLeave a Comment on SQL Server: Get Current Date

SQL Server: Get Current Date

December 15, 2023January 20, 2024

In this blog post, we’ll explore various methods to retrieve the current date using SQL Server commands. Get Current Date & Time in SQL Server GETDATE(): Get Precise Date & Time in SQL Server SYSDATETIME(): if you require a higher […]

SQL ServerTagged SQL Server Management Studio, SSMSLeave a Comment on How to Export Data Using SSMS

How to Export Data Using SSMS

November 16, 2023January 22, 2024

This post contains a guide on how to export data from SQL Server to your local desktop using SQL Server Management Studio (SSMS). The default export option in SSMS is Column-Aligned, and we need to change it to Comma-Delimited to […]

Posts pagination

Previous 1 … 8 9 10 11 Next

Popular Posts

DBASco (SQL DBA Blog) - 2024