How can we help you today? How can we help you today?
Aleksandar

Activity overview

Latest activity by Aleksandar

Unfortunately agent jobs are stored in terms of steps. One of the columns in the table is the Job ID, however you have to do a join with the sysjobs table to get its actual name. ive done this below: MERGE JOBS USING ( Select msdb.dbo.sysjobs.name AS [job_name], msdb.dbo.sysjobsteps.step_id AS [step_no], msdb.dbo.sysjobsteps.step_name AS [step_name], msdb.dbo.sysjobsteps.command AS [step_details], msdb.dbo.sysjobsteps.step_uid AS [step_uid] From msdb.dbo.sysjobs JOIN msdb.dbo.sysjobsteps ON msdb.dbo.sysjobs.job_id=msdb.dbo.sysjobsteps.job_id ) AS TEMP ON ( JOBS.STEP_UID = TEMP.step_uid ) WHEN MATCHED AND -- If it exists AND has changes ( JOBS.JOB_NAME <> TEMP.job_name OR JOBS.STEP_NO <> TEMP.step_no OR JOBS.STEP_NAME <> TEMP.step_name OR JOBS.STEP_DETAILS <> TEMP.step_details ) THEN UPDATE Set JOBS.JOB_NAME = TEMP.job_name, JOBS.STEP_NO = TEMP.step_no, JOBS.STEP_NAME = TEMP.step_name, JOBS.STEP_DETAILS = TEMP.step_details, JOBS.STEP_UID = TEMP.step_uid WHEN NOT MATCHED AND TEMP.step_uid IS NOT NULL THEN -- New files INSERT (JOB_NAME, STEP_NO, STEP_NAME, STEP_DETAILS, STEP_UID) VALUES (TEMP.job_name, TEMP.step_no,TEMP.step_name,TEMP.step_details,TEMP.step_uid) WHEN NOT MATCHED BY SOURCE THEN DELETE ; Im new to sql so hopefully that makes sense and answers your question in some respect at least [image] / comments
Unfortunately agent jobs are stored in terms of steps. One of the columns in the table is the Job ID, however you have to do a join with the sysjobs table to get its actual name. ive done this belo...
0 votes
Just had the bright idea that i could just copy the data from that table to some other database. I personally dont need version control on the system databases anymore but i imagine for some reason, someone out there might. / comments
Just had the bright idea that i could just copy the data from that table to some other database. I personally dont need version control on the system databases anymore but i imagine for some reason...
0 votes
System Databases
Had a quick search and couldnt find any info on this, but: Is there any way to put system databases under version control? In my case i just wish to put MSDB under version control and filter out ev...
2 followers 3 comments 0 votes
yep, throttling it back is nice and easy, but turning off polling is even easier [image] see here: http://www.red-gate.com/MessageBoard/vi ... hp?t=12837 / comments
yep, throttling it back is nice and easy, but turning off polling is even easier see here:http://www.red-gate.com/MessageBoard/vi ... hp?t=12837
0 votes
Tempdb use
We've been monitoring how much tempdb space RGSSC uses over a couple of days and it looks like it may be an issue. Over the space of 6 hours, when we had one client open, it seemed to reach 1.4gb a...
3 followers 3 comments 0 votes
Source control integration issues
After playing around with SQL Source Control and SQL Compare I just want some confirmation on an issue. While using Compare to rollback to a previous version, i noticed that this action is not comm...
3 followers 3 comments 0 votes