473,388 Members | 1,399 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Using extended properties on the DB objects. What is it?

OraMaster
135 100+
Hi All,

Below is the SQL of one view in my DB.

Expand|Select|Wrap|Line Numbers
  1. SELECT     cxc.cst_key AS q37_individual_key, dbo.co_individual.ind_cst_key AS q37_related_ind_key, dbo.co_individual.ind_prf_code AS q37_prf_code, 
  2.                       dbo.co_individual.ind_first_name AS q37_first_name, dbo.co_individual.ind_last_name AS q37_last_name, 
  3.                       dbo.co_individual.ind_mid_name AS q37_ind_mid_name, dbo.co_individual.ind_sfx_code AS q37_sfx_code, 
  4.                       dbo.co_individual.ind_gender AS q37_gender, dbo.co_individual.ind_deceased_flag AS q37_deceased_flag, 
  5.                       dbo.co_individual_ext.ind_death_date_ext AS q37_death_date_ext, dbo.co_individual_ext.ind_membership_id_ext AS q37_membership_id_ext, 
  6.                       cxc.cxc_rlt_code AS q37_rlt_code, cxc.cxc_start_date AS q37_start_date, cxc.cxc_end_date AS q37_end_date
  7. FROM         (SELECT     cxc_cst_key_1 AS cst_key, cxc_cst_key_2 AS cst_key_2, cxc_rlt_code, cxc_start_date, cxc_end_date
  8.                        FROM          dbo.co_customer_x_customer
  9.                        WHERE      (cxc_rlt_code =
  10.                                                   (SELECT     TOP (1) fws_option_values
  11.                                                     FROM          dbo.fw_system_option
  12.                                                     WHERE      (fws_key = '3ab8d879-5c2d-480e-8bd0-360aaabb9cae'))) AND (cxc_end_date IS NULL OR
  13.                                               cxc_end_date <= GETDATE())
  14.                        UNION ALL
  15.                        SELECT     cxc_cst_key_2 AS cst_key, cxc_cst_key_1 AS cst_key_2, cxc_rlt_code2 AS cxc_rlt_code, cxc_start_date, cxc_end_date
  16.                        FROM         dbo.co_customer_x_customer AS co_customer_x_customer_1
  17.                        WHERE     (cxc_rlt_code =
  18.                                                  (SELECT     TOP (1) fws_option_values
  19.                                                    FROM          dbo.fw_system_option AS fw_system_option_1
  20.                                                    WHERE      (fws_key = '3ab8d879-5c2d-480e-8bd0-360aaabb9cae'))) AND (cxc_end_date IS NULL OR
  21.                                              cxc_end_date <= GETDATE())) AS cxc INNER JOIN
  22.                       dbo.co_individual ON cxc.cst_key_2 = dbo.co_individual.ind_cst_key INNER JOIN
  23.                       dbo.co_individual_ext ON dbo.co_individual.ind_cst_key = dbo.co_individual_ext.ind_cst_key_ext
  24.  
  25. GO
  26. EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
  27. Begin DesignProperties = 
  28.    Begin PaneConfigurations = 
  29.       Begin PaneConfiguration = 0
  30.          NumPanes = 4
  31.          Configuration = "(H (1[25] 4[3] 2[56] 3) )"
  32.       End
  33.       Begin PaneConfiguration = 1
  34.          NumPanes = 3
  35.          Configuration = "(H (1 [50] 4 [25] 3))"
  36.       End
  37.       Begin PaneConfiguration = 2
  38.          NumPanes = 3
  39.          Configuration = "(H (1 [50] 2 [25] 3))"
  40.       End
  41.       Begin PaneConfiguration = 3
  42.          NumPanes = 3
  43.          Configuration = "(H (4 [30] 2 [40] 3))"
  44.       End
  45.       Begin PaneConfiguration = 4
  46.          NumPanes = 2
  47.          Configuration = "(H (1 [56] 3))"
  48.       End
  49.       Begin PaneConfiguration = 5
  50.          NumPanes = 2
  51.          Configuration = "(H (2 [66] 3))"
  52.       End
  53.       Begin PaneConfiguration = 6
  54.          NumPanes = 2
  55.          Configuration = "(H (4 [50] 3))"
  56.       End
  57.       Begin PaneConfiguration = 7
  58.          NumPanes = 1
  59.          Configuration = "(V (3))"
  60.       End
  61.       Begin PaneConfiguration = 8
  62.          NumPanes = 3
  63.          Configuration = "(H (1[56] 4[18] 2) )"
  64.       End
  65.       Begin PaneConfiguration = 9
  66.          NumPanes = 2
  67.          Configuration = "(H (1 [75] 4))"
  68.       End
  69.       Begin PaneConfiguration = 10
  70.          NumPanes = 2
  71.          Configuration = "(H (1[66] 2) )"
  72.       End
  73.       Begin PaneConfiguration = 11
  74.          NumPanes = 2
  75.          Configuration = "(H (4 [60] 2))"
  76.       End
  77.       Begin PaneConfiguration = 12
  78.          NumPanes = 1
  79.          Configuration = "(H (1) )"
  80.       End
  81.       Begin PaneConfiguration = 13
  82.          NumPanes = 1
  83.          Configuration = "(V (4))"
  84.       End
  85.       Begin PaneConfiguration = 14
  86.          NumPanes = 1
  87.          Configuration = "(V (2))"
  88.       End
  89.       ActivePaneConfig = 0
  90.    End
  91.    Begin DiagramPane = 
  92.       Begin Origin = 
  93.          Top = 0
  94.          Left = 0
  95.       End
  96.       Begin Tables = 
  97.          Begin Table = "co_individual"
  98.             Begin Extent = 
  99.                Top = 6
  100.                Left = 230
  101.                Bottom = 121
  102.                Right = 441
  103.             End
  104.             DisplayFlags = 280
  105.             TopColumn = 0
  106.          End
  107.          Begin Table = "co_individual_ext"
  108.             Begin Extent = 
  109.                Top = 6
  110.                Left = 479
  111.                Bottom = 121
  112.                Right = 758
  113.             End
  114.             DisplayFlags = 280
  115.             TopColumn = 0
  116.          End
  117.          Begin Table = "cxc"
  118.             Begin Extent = 
  119.                Top = 6
  120.                Left = 38
  121.                Bottom = 121
  122.                Right = 192
  123.             End
  124.             DisplayFlags = 280
  125.             TopColumn = 0
  126.          End
  127.       End
  128.    End
  129.    Begin SQLPane = 
  130.    End
  131.    Begin DataPane = 
  132.       Begin ParameterDefaults = ""
  133.       End
  134.    End
  135.    Begin CriteriaPane = 
  136.       Begin ColumnWidths = 11
  137.          Column = 1440
  138.          Alias = 900
  139.          Table = 1170
  140.          Output = 720
  141.          Append = 1400
  142.          NewValue = 1170
  143.          SortType = 1350
  144.          SortOrder = 1410
  145.          GroupBy = 1350
  146.          Filter = 1350
  147.          Or = 1350
  148.          Or = 1350
  149.          Or = 1350
  150.       End
  151.    End
  152. End
  153. ' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'VIEW', @level1name=N'vw_client_ri_individual_spouses'
  154.  
  155. GO
  156. EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'VIEW', @level1name=N'vw_client_ri_individual_spouse'
Can anyone pls explain me the code below of create view SQL. I am not getting why and how these extended properties are neing used in this code.
Oct 12 '09 #1
2 4716
ck9663
2,878 Expert 2GB
It's very hard to answer your question without knowing what this query is for, what kind of application it is designed for, why is it needed to be created, etc...

But you may start from learning what is extended property here.

Good luck!!!

--- CK
Oct 14 '09 #2
OraMaster
135 100+
@ck9663
Hi

Thanks for your reply.
Oct 15 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Roland Hall | last post by:
I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already found one bug, although stated the bug was only in ODBC, which I'm not using. It...
14
by: Roland Hall | last post by:
I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already found one bug, although stated the bug was only in ODBC, which I'm not using. It...
3
by: Roland Hall | last post by:
Three times the charm? Sorry for the repost. Trying to get my account right. I have two(2) issues. I'm experiencing a little difficulty and having to resort to a work around. I already...
1
by: funcSter | last post by:
I want to retrieve data from an Excel file like how I would with a database. I understand that I would have to use OLE DB. Somehow I think I cannot get the connection string right, as the bit of...
1
by: svijay | last post by:
hi I have got a strange problem. May I know any solution for this. Here is the detailed description about the problem We have got a mainframe system and also production and development...
0
by: jcvoon | last post by:
Hi: How to notify extended properties provider when the component is removed ? so that i can deleted the entry for that component from extended properties holder (the collection use to hold all...
3
by: Ben | last post by:
Hi! I have a user on my database that has only "select" access (db_datareader). Problem is, I also want him to also be able to create/update extended properties on tables or views, but without...
11
by: sweetpotatop | last post by:
Hi, I wonder if it is possible to read the content of an excel spreadsheet through aspnet. The spreadsheet (workbook) is protected and it resides in a network drive. Please provide sample...
2
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.