上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
  2009年1月6日
摘要: [代码]--UPDATE lock [代码] --SIX [代码] --SIU [代码]--1:167为索引页,1:165为数据页--UIX [代码] Request_status [代码]WAIT TimeTransaction 1Transaction 21set transaction isolation level read committedset transaction isolati... 阅读全文
posted @ 2009-01-06 13:45 stswordman 阅读(841) 评论(0) 推荐(0)
  2008年12月11日
摘要: [代码]http://www.sqlskills.com/BLOGS/PAUL/post/SQL-Server-2008-New-(undocumented)-physical-row-locator-function.aspx 阅读全文
posted @ 2008-12-11 14:41 stswordman 阅读(2425) 评论(0) 推荐(0)
  2008年12月10日
摘要: [代码] 阅读全文
posted @ 2008-12-10 15:59 stswordman 阅读(1539) 评论(0) 推荐(0)
  2008年11月25日
摘要: sys.fn_dblog返回当前数据库日志的活动部分的内容Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usedb1goifexists(select1fromsys.tableswherename='t')droptabletgocreatetablet(colint)godbcctraceon(3505,-1)---disable automatic checkpoint behaviorhttp://support.m 阅读全文
posted @ 2008-11-25 11:19 stswordman 阅读(3302) 评论(0) 推荐(0)
  2008年10月12日
摘要: 当一个数据库被附加到一个新得sql server实例后,它的数据库主密钥(database master key)默认不会被服务器主密钥(service master key)保护.在这种情况下,我们需要自己修改这种状态,使它被服务器主密钥保护。但如果忘记了数据库主密钥得密码,则无法完成这项操作.如何解决这一问题:在原始实例上为db1的数据库添加新的密码,这样我们就可以在新的实例中使用这个密码了.在原始实例上执行一下代码:[代码]在新实例中:[代码] 阅读全文
posted @ 2008-10-12 22:06 stswordman 阅读(1229) 评论(0) 推荐(0)
  2008年10月10日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; using System.Security.Principal; using System.Runtime.InteropServices; namespace imper... 阅读全文
posted @ 2008-10-10 16:29 stswordman 阅读(862) 评论(0) 推荐(0)
  2008年10月7日
摘要: 运行sp_xp_cmdshell_proxy_account 存储过程可能出现以下几种错误:sp_xp_cmdshell_proxy_account 'domain\account','p@5$word'Msg 15137, Level 16, State 1, Procedure sp_xp_cmdshell_proxy_account, Line 1An error occurred during the execution of sp_xp_cmdshell_proxy_account.Possible reasons: the provided account was invalid 阅读全文
posted @ 2008-10-07 14:05 stswordman 阅读(2872) 评论(0) 推荐(2)
  2008年10月6日
摘要: Sql server Agent是一种windows服务,用于执行各种管理任务。这些任务可能会涉及到一些对windows资源的访问(例如创建/删除文件等)。但是SQL Server中用户权限只在SQL Server范围内有效,无法扩展到SQL Server以外,这就意味着当执行job的安全上下文缺少相应权限时,job会失败。所以我们需要寻找另外一种方法来解决这个问题:凭据。首先看一下凭据的定义:凭据是包含连接到 SQL Server 外部资源所需的身份验证信息(凭据)的记录。此信息由 SQL Server 在内部使用。大多凭据都包含一个 Windows 用户名和密码。利用凭据中存储的信息,通过 阅读全文
posted @ 2008-10-06 10:38 stswordman 阅读(5004) 评论(7) 推荐(1)
  2008年8月28日
摘要: drop user u1 出现如下错误: Msg 15136, Level 16, State 1, Line 1 The database principal is set as the execution context of one or more procedures, functions, or event notifications and cannot be dropped. ... 阅读全文
posted @ 2008-08-28 15:21 stswordman 阅读(611) 评论(2) 推荐(0)
  2008年8月11日
摘要: 目前人们对于SQLSERVER处理登录密码的方式存在一些误解。希望阅读本文后,你能够对这些概念有清楚的认识。需要注意的是,只有SQL验证才会涉及到登录密码,WINDOWS验证模式不需要密码。第一个错误概念是SQLSERVER会对登录密码进行加密,然后储存起来。这是错误的。SQLSERVER存储的是经过HASH后的密码。HASH和加密的不同之处在于其难于反向破解--但是对于加密算法而言,只要掌握密钥就可以轻易获得明文。从HASH后的字符中找出原始明文是非常困难的(除非你已经知道了明文)。不选择加密而选择HASH的优点是无需保护密钥(参见之前的文章)。那么SQLSERVER是如何处理登录密码的呢? 阅读全文
posted @ 2008-08-11 00:57 stswordman 阅读(3032) 评论(8) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页