availability groups

Technical Article

Automatically Failover (Enable or Disable) Jobs Based on HADR Role

  • Script

If you have a SQL Server with a High Availability solution (AlwaysOn Availability Groups, Database Mirroring, etc.), and you also have a bunch of jobs which you need to be run on the Primary server only. You need to be able to "failover" the jobs in case the Primary server is no longer Primary.

5 (1)

You rated this post out of 5. Change rating

2018-11-14 (first published: )

2,779 reads

Technical Article

RE: help with date parameters

  • Reply

This is the result set it presented and I don't understand....  I am running a summary on activity for the year...my columns being the different activities and the months - the timeframe  I'm not sure what this is....1 D  June 1 D  August 6 D  November 30 D  December 2 P  June 32 P  July 1 PK June 1 PK July 2 PK August 3 PK November 3 PK December 2 U […]

2005-05-25

Technical Article

RE: Connect to different servers thru stored procedure

  • Reply

Short answer (based on complexity) you can't.  Why not use tried and true methods such as OSQL i.e (inside a BAT file)SET ChangeRecord=ABC123 SET LOGDIR="C:\Temp\%ChangeRecord%" IF NOT EXIST %LOGDIR% MKDIR %LOGDIR% SET LOG=%LOGDIR%\ProdInstall_%ChangeRecord%_runsql.log SET PREFIX=%LOGDIR%\prd. SET SRVNAME=YourServerNameHere SET DB=YourDBNameHere ECHO. > %LOG%osql  -S%SRVNAME% -E -n   -d%DB% -i "C:\Temp\PROD\Database\Stored Procedures\SPNAMEHERE.sql" -o %PREFIX%SPNAMEHERE.sql.err >> %LOG% OR a […]

You rated this post out of 5. Change rating

2005-05-24

Technical Article

RE: what does DBCC stand for?

  • Reply

Just a thought, but it struck me that the difference between Consistency Check and Concole Command could possibly be significant in a certification exam.  I would really hate to miss a question on something so trivial.Myself, it'll always be the former, I harken back to the 4.21a days on top of LanMan/OS2.

You rated this post out of 5. Change rating

2005-05-05

Blogs

So You Want to Deploy Power BI Project files (PBIPs)?

By

Have you heard the news about the new Power BI Project files? Okay, maybe...

DBAs, Organizing Your SQL Scripts in Git

By

I wrote an article that was published on SQL Server Central on how to...

Only Capture Extended Events For a Given Time

By

It’s a great question. Let’s say you want to capture stored procedure completions. But,...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers