Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Question about schema?

Question about schema?

Scheduled Pinned Locked Moved Database
csharpdatabasequestioncomgraphics
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #1

    I am working on a legacy app with a SqlServer DB I am about to create 18 brand new table to support new functionality I'm going to add Just for clarity sake I was thinking to create this table in a new schema (a bit like grouping my C# class by namespace / folder in my mind) But as I'm reading about schema I read that it has security associated with it.. :~ I don't want to make thing more complicated.. :(( (quite the opposite) So.. what's your take on shema? is it here for grouping things together for 1. clarity / purpose 2. security

    My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

    M J R J 4 Replies Last reply
    0
    • S Super Lloyd

      I am working on a legacy app with a SqlServer DB I am about to create 18 brand new table to support new functionality I'm going to add Just for clarity sake I was thinking to create this table in a new schema (a bit like grouping my C# class by namespace / folder in my mind) But as I'm reading about schema I read that it has security associated with it.. :~ I don't want to make thing more complicated.. :(( (quite the opposite) So.. what's your take on shema? is it here for grouping things together for 1. clarity / purpose 2. security

      My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      This is a flavour of the month thing, some do some don't. Security allows you to assign specific users to a schema, really useful if your users have query access to the database but if you use a schema just for you to identify the functionality grouping simply give all users the rights to the schema. Another issue will be your DAL, it will need to support multiple schemas, this one bit me many years ago as I assumed dbo only.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S Super Lloyd

        I am working on a legacy app with a SqlServer DB I am about to create 18 brand new table to support new functionality I'm going to add Just for clarity sake I was thinking to create this table in a new schema (a bit like grouping my C# class by namespace / folder in my mind) But as I'm reading about schema I read that it has security associated with it.. :~ I don't want to make thing more complicated.. :(( (quite the opposite) So.. what's your take on shema? is it here for grouping things together for 1. clarity / purpose 2. security

        My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        The purpose of the schema is security, how you use it is up to you. It's not an overly big deal to give the user associated with one schema rights on another schema.

        Be excellent to each other. And... PARTY ON, DUDES! Abraham Lincoln

        1 Reply Last reply
        0
        • S Super Lloyd

          I am working on a legacy app with a SqlServer DB I am about to create 18 brand new table to support new functionality I'm going to add Just for clarity sake I was thinking to create this table in a new schema (a bit like grouping my C# class by namespace / folder in my mind) But as I'm reading about schema I read that it has security associated with it.. :~ I don't want to make thing more complicated.. :(( (quite the opposite) So.. what's your take on shema? is it here for grouping things together for 1. clarity / purpose 2. security

          My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

          R Offline
          R Offline
          RedDk
          wrote on last edited by
          #4

          After you CREATE SCHEMA you'll notice that the object, if I could call it that for a moment, is found in the Security folder of the Object Browser tree. But as far as using SCHEMA as one would an "idea" in the "scheme of things" ... it's nature is perfect for that. I use it to isolate dev stages as I work on scripts. Testing procedures, isolating a vast array of data tables by filtering them via SCHEMA, in Object Viewer, is very easy. In fact one of the only downsides to using SQL Server Management Studio happens to be that only one SCHEMA at a time is filterable. That and a very aggrevating lack of code editor collapsablilty (-/+) as in VS. But that's rant for another holiday. ARRRRGHHHH me buckoe.

          1 Reply Last reply
          0
          • S Super Lloyd

            I am working on a legacy app with a SqlServer DB I am about to create 18 brand new table to support new functionality I'm going to add Just for clarity sake I was thinking to create this table in a new schema (a bit like grouping my C# class by namespace / folder in my mind) But as I'm reading about schema I read that it has security associated with it.. :~ I don't want to make thing more complicated.. :(( (quite the opposite) So.. what's your take on shema? is it here for grouping things together for 1. clarity / purpose 2. security

            My programming get away... The Blog... DirectX for WinRT/C# since 2013! Taking over the world since 1371!

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            Super Lloyd wrote:

            am about to create 18 brand new table ...I don't want to make thing more complicated

            Then I suggest you might want to take another look at the first part.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups