Where does Microsoft Dynamics CRM store OptionSet values in SQL Server?

Commander92 picture Commander92 · Sep 7, 2011 · Viewed 37.8k times · Source

I'm doing a data migration in to Microsoft Dynamics CRM 2011 and need to perform reconciliations against the source to ensure that everything loaded successfully.

To do this I am querying the SQL directly in SQL Server, but I can't seem to find where the OptionSet data is stored. Does anyone know what table(s) it's stored in?

Answer

Matt picture Matt · Sep 7, 2011

These are all stored in the StringMapBase table. You'll query via object type code of the entity, attribute name, option set value and language and that'll give you the display value of the attribute.