---
title: "MDS v4.6.x - Requirements for usp_DataStructOrientDriver"
canonical: "https://servicedesk.maxgeo.com/space/MDS/1065812004/MDS%20v4.6.x%20-%20Requirements%20for%20usp_DataStructOrientDriver"
format: markdown
---
The Stored Procedure [dbo].[usp_DataStructOrientDriver] calculates Computed fields 'Computed_Plane_Dip' and 'Computed_Plane_Azimuth' in tblDHStructOrient table

Here are requirements for calculation:

1. Required field 'Priority' in tblDHSurv has to be set to default value of '0' for the stored procedure to pass in SQL
2. Required field for calculation 'MAG_Azimuth' in tblDHSurv needs to be populated as well
3. Required fields 'Alpha' and 'Beta' in tblDHStructOrient needs to be populated
4. As part of the calculations, there has to be records above and/or below of the interval to be processed to have data.