摘要: 在数据库应用的设计中,我们往往会需要获取某些表的记录总数,用于判断表的记录总数是否过大,是否需要备份数据等。我们通常的做法是:select count(*) as c from tableA 。然而对于记录数巨大的表,上述做法将会非常耗时。在DELL 4400 服务器上做试验,MS Sqlserve 阅读全文
posted @ 2017-06-14 17:17 rosewong 阅读(6263) 评论(0) 推荐(0) 编辑
摘要: 1.服务器迁移之后,将原来的系统数据库覆盖到新的server,用当前windows account出现无法登录的现象,这时有以下几个方法: (1)在原机器上添加新的账号并赋予管理员的权限,然后迁移到新机器; (2)以单用户的模式登录,创建新的login: 1)迁移完成之后,停止sql服务; 2)运行 阅读全文
posted @ 2017-06-14 17:13 rosewong 阅读(426) 评论(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 阅读(307) 评论(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 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1.删除replication,先删除replication的作业,再删除对应的订阅,再删除发布; 2.相关脚本:删除监视器里不存在的条目sp_removedistpublisherdbreplication @publisher = 'publisher server' , @publisher_ 阅读全文
posted @ 2017-06-14 16:45 rosewong 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 默认情况下在日志复制中如果新增加Article那么需要产生一个包含所有Article的Snapshot。由于产生Snapshot会加锁,同时会产生IO操作,所以对于大的数据库性能影响是很大的。 可以通过下面的办法让SQL Server针对增加的Article产生Snapshot。 1. Disabl 阅读全文
posted @ 2017-06-14 16:40 rosewong 阅读(442) 评论(0) 推荐(0) 编辑
摘要: Issue type: 1.find out the number 0x0006F18F00006082002300000000 from publication end. 2.use below script to find out which command caused the issues. 阅读全文
posted @ 2016-12-29 13:51 rosewong 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 1.错误信息: 无法解密受保护的 XML 节点“ DTS:Password”,错误为 0x8009000B“该项不适于在指定状态下使用。”。可能您无权访问此信息。当发生加密错误时会出现此错误。请确保提供正确的密钥。 错误结束 错误: 2011-09-26 18:02:57.46 代码: 0xC... 阅读全文
posted @ 2015-10-20 16:43 rosewong 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 1.Dts 是类 Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptObjectModel 类的一个实例,Dts 对象有 7 个属性和一个方法,以下是DTS几个成员的简介:a. Connections-包中定义的一个连接,使用这个连接可以获得检索外部数据b... 阅读全文
posted @ 2015-10-20 16:38 rosewong 阅读(690) 评论(0) 推荐(0) 编辑
摘要: Oracle认证:常见问题诊断方法如下:1、TNS-12154 Error 或ORA-12154 特征:SQL*NET没有找到连接串或别名 原因1:(1)没有找到TNSNAMES.ORA文件,该文件的缺省路径为: Windows95/98 client SQL*Net 2.x - ORAW... 阅读全文
posted @ 2015-10-09 14:04 rosewong 阅读(512) 评论(0) 推荐(0) 编辑