473,806 Members | 2,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

OraMaster
135 New Member
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 4749
ck9663
2,878 Recognized Expert Specialist
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 New Member
@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
10703
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 appears to be in the OLEDB driver also. My connection was: conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPath & ";" & "Extended Properties='Text;HDR=NO;FMT=Delimited'"
14
5868
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 appears to be in the OLEDB driver also. My connection was: conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPath & ";" & "Extended Properties='Text;HDR=NO;FMT=Delimited'"
3
2761
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 found one bug, although stated the bug was only in ODBC, which I'm not using. It appears to be in the OLEDB driver also. My connection was:
1
3257
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 code fails at "objConn.Open()" with the error: System.Data.OleDb.OleDbException: Could not find installable ISAM. Can somebody please help me out? I'm still a learning programmer, so if someone can point out my mistakes, it'll be great! Thanks! ...
1
2413
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 server.
0
997
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 the extended properties value). Thanks JCVoon
3
3567
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 modifying the tables' schema. I played around with GRANT but apparently, a member of "db_datareader" cannot create/modify extended properties on an object if he's not the owner of this object. I tried making this user a member of
11
2207
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 code if possible. Thanks in advance. Your help is greatly appreciated.
2
4092
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 the right to run the stored procedure but not the rights to directly access either the referenced tables or the extended stored procedure. TIA!
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10620
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10369
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10372
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.