Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:42:54+00:00 2026-05-23T18:42:54+00:00

I am writing a simple CMS for a client’s database. There are 12 tables

  • 0

I am writing a simple CMS for a client’s database. There are 12 tables and they need to manage all of the data in 4 of them.

I set up a dynamic data project (Linq-to-SQL as that’s what I’m most familiar with) and the first page makes all 12 tables available for edit as it should. These are in an enumerable list called visibleTables.

Next I went into SSMS and created an extended property called UserEdit and set it to 0 or 1 depending on whether the user should see it on that screen.

What I would love to do is filter the visibleTables list by that extended property but don’t know how to.

I am able to see the list of tables and the property with this query:

select major_id, name, value
from sys.extended_properties
where name = 'UserEdit'

and I was going to loop through the visibleTables and remove the ones with 0s but I haven’t figured that out either yet as the major_id doesn’t seem to be a property I can find.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:42:55+00:00Added an answer on May 23, 2026 at 6:42 pm

    Well, according to http://msdn.microsoft.com/en-us/library/ms177541.aspx, “major_id” for your class of extended properties (OBJECT_OR_COLUMN) really indicates the “object_id”. So the following query would get you all the extended properties along with the tables they belong to:

    select p.*, t.*
    from sys.extended_properties p
    inner join sys.tables t on p.major_id = t.object_id
    where class = 1
    

    You can filter it as you like, but let me know if you need help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a simple cms for a client and for the umpteenth time can't
I'm writing a simple CMS. I want to be able to load a View,
I'm writing a web site (C#, ASP 3.5) while implementing a simple CMS. In
I am writing a pretty simple CMS on GAE, and I want my users
I writing simple application that need to make some record of the incoming sound.
I'm writing simple server/client and trying to get client IP address and save it
I am writing simple game on flex. In the game there are 2 objects
I'm writing a simple CMS based on Django. Most content management systems rely on
I am writing simple client-server program. Client send some messages to server using UDP
I'm writing simple program to communicate between smart devices and I receive 11001 when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.