Avatar of Zack
ZackFlag for Australia

asked on 

How to Create a SQL Job that runs across multiple databases simultaneously - SQL Server 2008 R2

Hi EE,

How do I create a SQL Job that runs on multiple databases simultaneously - SQL Server 2008 R2 Below is the code I would like to run:

DELETE FROM [DATABASE_NAME].dbo.ScanRecords
       WHERE                                          
              Name = 'Empty Scan Record' AND Status = 1
Any assistance is welcome.

Thank you.
Microsoft SQL ServerSQL

Avatar of undefined
Last Comment
Zack
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Zack
Zack
Flag of Australia image

ASKER

Hi Pawan,

Cheers for the query suggestion, I just found a link that shows how to run a singular job to access multiple servers.

https://www.mssqltips.com/sqlservertip/1767/execute-sql-server-query-on-multiple-servers-at-the-same-time/

Thank you for your help.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo