SQLServer

Technical Article

Import Multiple Packages to SSIS server

  • Script

We cannot import multiple packages on the SSIS server. So, loading 100 packageS from  file location will be a tedious task for a DBA. We can solve this issue by making use of the DTUTIL utility. The DTUTIL utility can also import one package at a time, but we can write the batch file using the […]

You rated this post out of 5. Change rating

2021-09-27 (first published: )

1,627 reads

SQLServerCentral Article

Fixing "Login failed for user" error in SQL Server

  • Article

In this article, I am going to explain fixing a problem related login failure error with SQL Server. The Problem One of the common error in the SQL Server error log is "Login failed for user 'DomainName\ServerName$'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]". Even though it says that […]

You rated this post out of 5. Change rating

2020-11-24

45,542 reads

SQLServerCentral Article

Block user objects from being created in a master database

  • Article

Introduction The Master database. Just in case that you are not familiar with this database, the Master database is used in SQL Server to store all the system information, instance-level settings, logon information, database file locations, etc. SQL Server can't run without access to a fully functional master database. It's highly recommended not to use […]

5 (7)

You rated this post out of 5. Change rating

2020-11-10

3,985 reads

Blogs

SQL Data Pipelines: The Ultimate Guide to Streamlining Your Data Flow

By

Want to build a data analytics foundation that transforms raw data into valuable business...

Using SQL Compare in Read-Only Databases

By

Recently a customer asked if SQL Compare and SQL Data Compare can be used...

T-SQL Tuesday #179 Roundup: The Data Detective Toolkit

By

Earlier this month, I hosted the monthly T-SQL Tuesday invitation in which I asked,...

Read the latest Blogs

Forums

Concatenating Multiple Row Values into a Single Comma-Separated List

By Sukhdevsinh Dhummad

Comments posted to this topic are about the item Concatenating Multiple Row Values into...

From each string extract Numbers following a '#' and create separate row

By SqlRookie

Hi there, I've tried CROSS APPLY, PATINDEX and many other functions, but can't nail...

Looping SQL Agent Job

By paul.farnell

What is the best way to continually loop a SQL Server Agent Job? I...

Visit the forum

Question of the Day

The LAGing data

I have some simple sales data in a SQL Server 2022 database that looks like this:

TransactionDate SalesAmount
2023-01-15      1200.00
2023-02-22      1500.50
2023-03-10      900.75
If I run this query, what are the sales growth amounts returned?
SELECT
  ms.TransactionDate
, ms.SalesAmount
, ms.SalesAmount - LAG (ms.SalesAmount, 1) OVER (ORDER BY ms.TransactionDate) AS SalesGrowth
FROM dbo.MonthlySales AS ms;

See possible answers