随笔分类 -  Knowledge

摘要:Msg 50000, Level 16, State 127, Line 280 Login 'XXX' owns one or more database(s). Change the owner of the database(s) before dropping the login. 1.Us 阅读全文
posted @ 2017-07-10 10:39 rosewong 阅读(459) 评论(0) 推荐(0)
摘要:1.性能指标:响应时间、吞吐量、可扩展性 (1)响应时间:终端用户的请求尽可能要快速响应; (2)吞吐量:资源的使用情况(网络、设备、端口、虚电路或者其他设备单位时间内传送数据的数量) (3)可扩展性:表示遇到性能问题时,是否可以通过简单的增加资源的方法来解决问题 2.根据性能数据分析问题 (1)大 阅读全文
posted @ 2017-06-30 17:42 rosewong 阅读(222) 评论(0) 推荐(0)
摘要:How to troubleshoot Msg 832 (constant page has changed) in SQL Server How to troubleshoot Msg 832 (constant page has changed) in SQL Server How to tro 阅读全文
posted @ 2017-06-19 13:49 rosewong 阅读(426) 评论(0) 推荐(0)
摘要:From:https://blogs.msdn.microsoft.com/sqlsakthi/2011/02/09/troubleshooting-sql-server-io-requests-taking-longer-than-15-seconds-io-stalls-disk-latency 阅读全文
posted @ 2017-06-15 11:26 rosewong 阅读(775) 评论(0) 推荐(0)
摘要:在数据库应用的设计中,我们往往会需要获取某些表的记录总数,用于判断表的记录总数是否过大,是否需要备份数据等。我们通常的做法是:select count(*) as c from tableA 。然而对于记录数巨大的表,上述做法将会非常耗时。在DELL 4400 服务器上做试验,MS Sqlserve 阅读全文
posted @ 2017-06-14 17:17 rosewong 阅读(6428) 评论(0) 推荐(0)
摘要:1.服务器迁移之后,将原来的系统数据库覆盖到新的server,用当前windows account出现无法登录的现象,这时有以下几个方法: (1)在原机器上添加新的账号并赋予管理员的权限,然后迁移到新机器; (2)以单用户的模式登录,创建新的login: 1)迁移完成之后,停止sql服务; 2)运行 阅读全文
posted @ 2017-06-14 17:13 rosewong 阅读(478) 评论(0) 推荐(0)
摘要:Message: Unable to start execution of step 3 (reason: The PowerShell subsystem failed to load [see the SQLAGENT.OUT file for details]; The job has bee 阅读全文
posted @ 2017-06-14 17:05 rosewong 阅读(337) 评论(0) 推荐(0)
摘要:1.The database principal owns a schema in the database, and cannot be dropped 2.User:sa trying to delete a user 'test' which exists in the db 'TestDB' 阅读全文
posted @ 2017-06-14 17:03 rosewong 阅读(289) 评论(0) 推荐(0)
摘要:1.删除replication,先删除replication的作业,再删除对应的订阅,再删除发布; 2.相关脚本:删除监视器里不存在的条目sp_removedistpublisherdbreplication @publisher = 'publisher server' , @publisher_ 阅读全文
posted @ 2017-06-14 16:45 rosewong 阅读(406) 评论(0) 推荐(0)
摘要:默认情况下在日志复制中如果新增加Article那么需要产生一个包含所有Article的Snapshot。由于产生Snapshot会加锁,同时会产生IO操作,所以对于大的数据库性能影响是很大的。 可以通过下面的办法让SQL Server针对增加的Article产生Snapshot。 1. Disabl 阅读全文
posted @ 2017-06-14 16:40 rosewong 阅读(456) 评论(0) 推荐(0)
摘要:源自: http://www.tuicool.com/articles/uymuUz The following window prompts at each attempt, kindly have a look: It simply states "The database principal 阅读全文
posted @ 2017-03-17 17:54 rosewong