SQL技巧:取消用户自定义数据库对象的公共读取权限

发布日期  发布: 2009-2-19 | 发布人  发布者: 月下独舞 | 来源  来源: 江西广告网


  你的数据库对象允许任何用户访问吗?如果是,那么你的数据库就会有安全缺陷,你需要取消用户自定义数据库对象的公共读取权限。   由于数据库的设计,所有用户都被当作公共成员。从公共数据库中取消用户自定义数据库对象公共读取权限的办法就是创建一个用户自定义数据库。做法如下:      1.把你的用户自定义数据库放入一个系统提供的数据库。系统提供的数据库有:db_owner,db_accessadmin,db_securityadmin,db_ddladmin,db_backupoperator,db_datareader,db_datawriter,db_denydatareader和db_denydatawriter。   2.把你的用户自定义数据库添加到将作为开发环境的db_datareader和db_datawriter中。如果你已经有一个可以添加和/或删除用户自定义数据库对象的开发环境,你就只需要取消这个权限或是把你的用户自定义数据库添加到db_ddladmin系统数据库中。   3.把数据库用户作为数据库成员添加到你的用户自定义数据库中。   4.取消所有的公共权限。   不要向公共用户发出DENY命令。如果你向公共用户发出了DENY命令,用户将不能读取用户自定义数据库的对象。用REVOKE命令代替DENY命令来取消读取公共数据库的权限。这样设置后,数据库的用户就是用户自定义数据库的成员了。用户自定义数据库具有读取用户自定义数据库对象的权限。因此这个用户自定义数据库允许数据库用户读取用户自定义数据库的对象。   以下是实施上面的方法的具体步骤:    <
本站文章部分内容来自互联网,供读者交流和学习,如有涉及作者版权问题请及时与我们联系,以便更正或删除。感谢所有提供信息的网站,并欢迎各类媒体与我们进行信息共享合作。
关闭本窗口 | 打印 | 收藏此页 |  推荐给好友 | 举报
Post: adidas3592     Date: 2011-12-26 09:19:49
hubble left ear length 31 cm, ear width 34 cm , guinness book of world records . six (xinhua) beijing, sept.6 onward to alien medium reports,nike 通販, u.s. colorado, a hound cried hubble 's recently out of the nominate the reason is namely it is weird is for quite long mammoth ears . it has quickly reached the ears of long guinness book of world records ,christian louboutin shoes discount, the hubble according to measurements,christian louboutin stores, hubble 's left ear length 12.25 inches almost 31 cm) , ear length 13.5 inches ( 34 cm) ,christian louboutin thigh high boots, the amount of 0.65 meters. but harper was never so pleased because it is a little dog long ears,ルイヴィトン 財布 新作, it often stumble ,christian louboutin discount shoes, stumble it several times it is reported is hubble is a hounding raccoon dog - level special arrest raccoon dog. long ears flapping the atmosphere to help it find the savour source. share : greet to comment to comment microblogging recommended | today's hot microblogging related articles: soph.jp/mt/archives/2010/11/27154138.php#comments tan888.joinbbs /viewthread.php?tid=110503&pid=129958&page=1&extra=page%3d1#pid129958 jsbaobei /bbs/viewthread.php?tid=334663&pid=358697&page=1&extra=page%3d1#pid358697

版块排行

  • SEO搜索                                    5984
  • Web软件                                    3334
  • 交互设计                                    3279
  • 平面软件                                    2575
  • 设计欣赏                                    2501
  • 游戏世界                                    1244
  • 程序开发                                    830
  • 前沿视觉                                    560
  • 电脑网络                                    514
  • 摄影赏析                                    291