How can we help you today? How can we help you today?
Lxocram

Activity overview

Latest activity by Lxocram

One way to do this is to add views to the msdb databases on both nodes/servers that act as a non-system-object "proxy" You can then use SQL DATA Compare with the option "include views" and then set comparison keys in SQL DATA COMPARE tables & views to use the names instead of uuids and then exclude identifier/modified/version columns from comparison e.g USE msdb; GO CREATE OR ALTER VIEW sysjobs_proxy AS SELECT * FROM msdb.dbo.sysjobs AS j; GO CREATE OR ALTER VIEW sysjobsteps_proxy AS SELECT st.*,        j.job_id AS j_job_id,        j.name AS job_name FROM dbo.sysjobsteps AS st     INNER JOIN dbo.sysjobs AS j         ON j.job_id = st.job_id; GO CREATE OR ALTER VIEW sysjobschedules_proxy AS SELECT jsc.*,        j.job_id AS j_job_id,        j.name AS job_name,        sc.name AS shedule_name,        sc.schedule_id AS sc_schedule_id FROM msdb.dbo.sysjobschedules AS jsc     INNER JOIN dbo.sysjobs AS j         ON j.job_id = jsc.job_id     INNER JOIN dbo.sysschedules AS sc         ON sc.schedule_id = jsc.schedule_id; GO CREATE OR ALTER VIEW sysschedules_proxy AS SELECT * FROM msdb.dbo.sysschedules AS s; However - this does not yield any usable scripts to switch job-step order etc.. It's easier to script out the job with DROP and CREATE and alter top portion IF EXISTS (SELECT 1 FROM msdb.dbo.sysjobs WHERE name='JOBNAME' BEGIN DECLARE @jobId BINARY(16) SELECT @jobId=job_id FROM msdb.dbo.sysjobs WHERE name='JOBNAME' EXEC msdb.dbo.sp_delete_job @job_id=@jobId, @delete_unused_schedule=1 END / comments
One way to do this is to add views to the msdb databases on both nodes/servers that act as a non-system-object "proxy"You can then use SQL DATA Compare with the option "include views"and then set c...
0 votes
SQL source control crashing SSMS
First I get a windows error Problem signature: Problem Event Name: APPCRASH Application Name: RedGate.AppHost.Client.exe Application Version: 0.0.1.130 Application Timestamp: 583f0748 Fault Module ...
1 follower 1 comment 0 votes
Include some identical objects in deployment script
Is there an option to include identical objects in the selected objects for deployment? I know you can include them in the "change report" html but i can't select them in object selected for deplo...
2 followers 4 comments 0 votes
Multi database support - commit changes from a list of DBs
We have multible databases under source control.(some main-db's and some more modular/auxiliary "side"-databases). They're on the same server. Each has their own repository. They're not part of one...
1 follower 1 comment 0 votes
Suggested Indexes on RG_AllObjects_V4
Database Engine Tuning Advisor ( :twisted: ) keeps advising me to add indices on some tables in tempdb related to SQL Source Control. Why is tempdb used for this table and not a dedicated redgate d...
2 followers 3 comments 0 votes
Now we can import/export styles care to share yours?
I sometimes wish to switch styles depending on the length/complexity of the code i'm viewing. e.g. im doing some analysing of data with a whole bunch of other queries in the same window SELECT fiel...
0 followers 0 comments 0 votes