Since SQL Server doesn't have packages, what do programmers do to get around it?

后端 未结 9 1495
有刺的猬
有刺的猬 2020-12-15 05:27

I have a SQL Server database that has a huge proliferation of stored procedures. Large numbers of stored procedures are not a problem in my Oracle databases because of the O

9条回答
  •  一生所求
    2020-12-15 06:00

    While SQL Server has nothing to offer by way of the "cool features" of encapsulation and package state like you are used to, you can organize your stored procedures into schemas.

    In enterprise manager, these procs are still all listed together which makes for a HUGE treelist if you have hundreds of procs. I too miss the organization and cool features of Oracle packages. However, all platforms have their strengths.

    NOTE: Writing stored procedures in the .NET language DOES give you encapsulation and state. It still does not however separate them in the EM treeview in any special way.

提交回复
热议问题