What good are SQL Server schemas?

后端 未结 12 1923
青春惊慌失措
青春惊慌失措 2020-11-27 10:43

I\'m no beginner to using SQL databases, and in particular SQL Server. However, I\'ve been primarily a SQL 2000 guy and I\'ve always been confused by schemas in 2005+. Yes

12条回答
  •  生来不讨喜
    2020-11-27 10:54

    I think schemas are like a lot of new features (whether to SQL Server or any other software tool). You need to carefully evaluate whether the benefit of adding it to your development kit offsets the loss of simplicity in design and implementation.

    It looks to me like schemas are roughly equivalent to optional namespaces. If you're in a situation where object names are colliding and the granularity of permissions is not fine enough, here's a tool. (I'd be inclined to say there might be design issues that should be dealt with at a more fundamental level first.)

    The problem can be that, if it's there, some developers will start casually using it for short-term benefit; and once it's in there it can become kudzu.

提交回复
热议问题