Views [dbo].[usm_vw_offering_path]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created11:14:48 AM Tuesday, March 30, 2010
Last Modified11:14:48 AM Tuesday, March 30, 2010
Columns
Name
offering_id
parent_id
base_offering
top_base_offering
status
date_available
date_unavailable
date_created
date_cancelled
code
offering_name
description
info_link
notes_id
selection_type
is_leaf
sort_order_type
sort_order_no
sort_order
sub_note_control
image_file
domain
approval_process
approval_level
version
type
default_on_approval_status
sd_request_area
path
tree_level
feature_sort_order_type
feature_sort_order
date_last_modified
folder_display_type
calendar_id
business_hour_id
offering_path
service_folder
Permissions
TypeActionOwning Principal
GrantSelectusmgroup
SQL Script
create view usm_vw_offering_path as
select
    usm_offering.*,
    dbo.usm_fn_get_offering_path(usm_offering.offering_id) as offering_path,
    case when charindex('/',dbo.usm_fn_get_offering_path(usm_offering.offering_id)) > 0
        then substring(dbo.usm_fn_get_offering_path(usm_offering.offering_id),1,charindex('/',dbo.usm_fn_get_offering_path(usm_offering.offering_id))-1)
        else
        dbo.usm_fn_get_offering_path(usm_offering.offering_id) end as service_folder
from usm_offering
GO
GRANT SELECT ON  [dbo].[usm_vw_offering_path] TO [usmgroup]
GO
Uses