1. Using SQL server management studio, create the stored procedure by connecting to the Orion database, and running the above script. Type USE SolarWindsOrion or whatever daabase name they are using for Orion DB before running the script.
2. Execute the stored procedure to create the links between server volumes and storage relationships. Running it again periodically will create new links that are not there already as new datastore and store array relationships are added in VIM.
USE SolarWindsOrion
EXEC [dbo].[dbm_SRM_Topology_CreateVolumeStorageLinksForDatastoreStorageRelationsips];