Feeds:
Posts
Comments

Archive for June, 2009

SCOM: Riding Overrides

Question: How do you disable a rule in a sealed MP and show that rule is disabled? This is another question that I encountered with OpsMgr aka SCOM 07 (I am counting…!). Facts: 1. All the rules have default Yes/No in the Enabled column. 2. You wouldn’t be able to disable/enable a rule if the [...]

Read Full Post »

Kill Multiple SPIDs

Quite a handy script if you want to clear out ALL spids connected to a database. USE master go DECLARE @dbname sysname SET @dbname = ‘yourdbname’ DECLARE @spid int SELECT @spid = min(spid) FROM master.dbo.sysprocesses WHERE dbid = db_id(@dbname) WHILE @spid IS NOT NULL BEGIN EXECUTE (‘KILL ‘ + @spid) SELECT @spid = min(spid) FROM [...]

Read Full Post »

If you have an access to your desktop via a VPN, you’d realise that you won’t be able to lock your desktop remotely using Ctrl + Alt +Del or Windows + L . To work around this issue, the easiest way is to create a shortcut on the remote desktop to lock the work station. [...]

Read Full Post »

Hi there, thanks for reading my blog! Hope you find the content useful for your day-to-day work. As you know, I am at the early stage of my DBA life and thinking it will be interesting to blog what I learnt over time. Time to get a bit serious, I said and I am taking [...]

Read Full Post »

Here’s my list: 1. By GUI On Object Explorer in SSMS, right click the server then click Restart. 2. By Cluster Administrator Go to Administrative Tools>Cluster Administrator. Click Open. Select Action: Open connection to cluster and type or select the cluter/server name. Click OK. Expand Groups. Select the instance that you want to restart. Right [...]

Read Full Post »

A SCOM Tale: Alerts Overflow

Some time last year, I had a brief encounter with SCOM. I was happily playing around with it, reading SCOM materials and blogs (Jakub Olesky’s , Kevin Holman’s, etc) and trying on some hands-on materials, such as writing a script with MOMAPI. One day, I was inundated by hundreds of thousands of SCOM alerts. Needless [...]

Read Full Post »

Do you see something like this in your database? DOMAIN\login.myTable Username.myView Username.someStoredProc Sometimes these objects are created ”accidently” under user’s schema. So how do we change it back to dbo or to other schema? ALTER SCHEMA dbo TRANSFER DOMAIN\login.myTable This will alter the schema of myTable to dbo. Want to dig more information for schemas [...]

Read Full Post »

Follow

Get every new post delivered to your Inbox.