Skip to content

{ Category Archives } SQL

Generating Reference attributes from String data

Once upon a time we used to be able to write Advanced Flow Rules for reference attributes. Admittedly this sometimes led to horribly inefficient code, but it was useful – particluarly when paired with FindMVEntries to lookup and then reference an existing Metaverse object.
With FIM we lost this capability, and Microsoft claim we were never [...]

Querying Set Membership

Post deleted because it was a lot easier than I thought! See comments below.

A Basic Requests Reporting Method

There were a few FIM reporting sessions at TEC, none of which I managed to make it to, though I hope the presenters will be making their solutions generally available as they are undoubtably more correct and complete than what I’ve been doing. However a couple of people did ask that I post my method [...]

Error 25009 installing FIM Sync Update 241774

While trying to install update 241774 I got “Error 25009: The Forefront Identity Manager Synchronization Service setup wizard cannot configure the specified database. Windows NT user or group ‘mydomain\fimsync-service-account‘ not found. Check the name again.”

A simple powershell script to copy tables to another database

I’ve finally started using SQL 2008 Reporting Services in earnest to provide access to all that useful data in the FIM Metaverse. Like a good girl I’m replicating the tables to another database, instead of pointing straight at the active FIMSynchronizationService database. Here’s a simple little script that I’ve tacked on to the end of [...]

Querying the FIM Metaverse using powershell

It’s actually pretty easy to query SQL 2008 from powershell.
This simple little script reads employeeID numbers from a text file and then queries the metaverse for selected attributes. The text file must have “id” as the first row, with the id numbers then listed one per line.

The Dreaded Transaction Log

Why oh why does MIIS have such an insatiable appetite for transaction log space? I’m afraid I can’t answer this, but I can share a few tips.

SQL 2005 MA: Export and Delta Import

I use a lot of SQL MAs. While ILM/MIIS is great at syncing data between directories, it really isn’t that great at calculating and comparing. As much as possible I like to do the data manipulation in SQL, and then keep ILM to what it’s best at – joins and syncs.
After exporting data to a SQL [...]

String to relational DN export flows

Thanks to Joe Stepongzi for pointing this one out to me: you can flow a metaverse string attribute direct to a connector space relational DN attribute, as long as the metaverse string holds a valid DN.

A few new or updated vbscript snippets

Function RunProfile - run a MA run profile
Sub ArchiveLog - copy import and export logs to a timestamped version, while modifying them to work with a XML stylesheet
Function ExportsPending - check if the MA has pending exports
Function DeltaImportsPending - check if a Delta table has any lines to import
Function RunSSIS – call a SQL 2005 SSIS Package