Ron's Sandbox

Distinct Data

Tuesday, 27 October 2009 07:28 by hagermanr
I recently had a need for some distinct data. Now, usually that’s simple enough. We simply create a data reader or dataset or whatever and run a query against our database and life is good. Unfortunately, my data source this time around was not SQL based but instead, was coming from the Syst... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   C Sharp
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Clearing Your Cache

Tuesday, 21 July 2009 03:46 by hagermanr
While working with the Exchange Server Admins, we had an issue where they had to delete the SCOM cache rather often on a large number of servers. The process for this is to log into each host, stop the OpsMgr Health Service service, delete the Health Service State folder then restart the service. T... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Data Iteration

Wednesday, 3 June 2009 23:16 by hagermanr
I remember back in the days of asp, looping through data arrays and displaying it on web pages. Short of it is, I want to display a table of data and I don’t need to manipulate the data in any way so I just want to display it. What I did in asp was, assign the data row to an array and then assign e... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   C Sharp | General
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Dynamic TreeViews

Thursday, 7 May 2009 22:43 by hagermanr
First, create a data table that will hold our data for iteration. DataTable temp = new DataTable(); col = new DataColumn("link_id"); temp.Columns.Add(col); col = new DataColumn("link_parent"); temp.Columns.Add(col); col = new DataColumn("link_name"); ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   C Sharp
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Iterating Groups in SCOM

Monday, 1 December 2008 23:51 by hagermanr
  Greetings all, I've had the fundamental need to go through and find all of the servers in the SCOM console that belong to a specific group. The idea is that we monitor most servers with SCOM and send the critical hardware and OS alerts to another company that uses OVO while the ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

The Windows Service

Friday, 17 October 2008 13:09 by hagermanr
 Ok, on to the Windows service. There are a couple of things about a Windows service. First, you need a timer and second, unless you want to wait until the timer ticks down to 0, you need to place your code in a routine and call it for the first time from the OnStart() method. So, in ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

SCOM Subscriptions

Thursday, 25 September 2008 07:17 by hagermanr
We have noticed over the last few weeks, a problem where subscriptions in System Center Operations Manager 2007 suddenly and for no reason we can identify, become disabled. This is a bad thing because these subscriptions are used to send email and pages to folks like Winfra when there is a critica... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

File Uploads

Wednesday, 21 May 2008 09:16 by hagermanr
I’m working on a project where the end user will be able to upload a comma delimited file and work will be done for each row in the file. The file upload control works well for this but I found that it will allow the end user to upload files other than CSV files so I had to find a way ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   C Sharp
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

Strongly Typed Classes

Monday, 21 April 2008 12:27 by hagermanr
While on my cruise, I took my personal laptop and created a service that allows me to record each and every person who uses my laptop to a SQL Express database. I did this for no other reason than to see what would be involved. First thing is to get a list of all the processes running o... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   C Sharp
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed

The Dynamic Menu Part 1 - The Database

Wednesday, 26 March 2008 15:44 by hagermanr
I had a request at work for a method of adding links at random. In other words, I have a group of people, say, 40 who want to add links to the group website without going through me, the web master. Now, first thought is, BAD IDEA!!! All I need is a bunch of links on my group website that don'... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   C Sharp | SQL Server
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed