Fanr

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页

2011年10月28日

摘要: In transactional replication, the transaction log of the database involved in replication is both written to and read from. Without replication, a transaction log is almost always written to, and rarely read from. Because a transaction log is both written to and read from when using transactional re 阅读全文
posted @ 2011-10-28 11:08 Fanr_Zh 阅读(335) 评论(0) 推荐(0) 编辑

2011年10月23日

摘要: USE AdventureWorksDW2008R2declare @P1 int --游标号码declare @P2 intset @P2=8 --参数[传入参数](可能是游标类型)declare @P3 intset @P3=1 --参数[传入参数](可能是游标锁类型)declare @P4 int --返回行数beginexec sp_cursoropen @P1 output,N'select * from DimCustomer',@P2 output,@P3 output,@P4 outputexec sp_cursorfetch @P1, 16, 1, 100-- 阅读全文
posted @ 2011-10-23 19:41 Fanr_Zh 阅读(310) 评论(0) 推荐(0) 编辑

2011年10月22日

摘要: Troubleshooting Performance Problems in SQL Server 2005Published: October 1, 2005Writers:Sunil Agarwal, Boris Baryshnikov, Tom Davidson, Keith Elmore, Denzil Ribeiro, Juergen ThomasApplies To:SQL Server 2005Summary:It is not uncommon to experience the occasional slow down of a SQLServer database. A 阅读全文
posted @ 2011-10-22 22:12 Fanr_Zh 阅读(3634) 评论(0) 推荐(0) 编辑

2011年10月21日

摘要: DBCC CACHESTATSdisplays information about the objects currently in the buffer cache, such as hit rates, compiled objects and plans, etc.Example:DBCC CACHESTATSSample Results (abbreviated):Object Name Hit Ratio————————-Proc0.86420054765378507Prepared0.99988494930394334Adhoc 0.93237136647793051ReplPro 阅读全文
posted @ 2011-10-21 10:41 Fanr_Zh 阅读(455) 评论(0) 推荐(0) 编辑

2011年10月12日

摘要: 背景: 朋友的提问原因: 数据库因机器名被修改无法成功发布问题处理办法: if serverproperty('servername') <> @@servername begin declare @server sysname set @server = @@servername exec sp_dropserver @server = @server set @server = cast(serverproperty('servername') as sysname) exec s... 阅读全文
posted @ 2011-10-12 16:41 Fanr_Zh 阅读(305) 评论(0) 推荐(0) 编辑

摘要: 某些查询占用的资源比其他查询占用的资源多。例如,返回大型结果集的查询和那些包含 WHERE 子句(并非唯一子句)的查询总是占用大量资源。与不太复杂的查询相比,查询优化器的智能水平无法消除这些构造的资源开销。SQL Server 使用最佳访问计划,但查询优化会受到可访问内容的限制。尽管如此,您可以执行下列操作来提高查询性能:添加更多内存。当服务器运行许多复杂查询且其中几个查询执行很慢时,此解决方案尤其有用。使用多个处理器。多个处理器允许数据库引擎使用并行查询。有关详细信息,请参阅。重写查询。请注意下列事项:如果查询使用游标,则确定是否可以使用效率更高的游标类型(如快速只进游标)或单个查询编写游标 阅读全文
posted @ 2011-10-12 13:16 Fanr_Zh 阅读(458) 评论(0) 推荐(0) 编辑

2011年9月21日

摘要: List of Threshold Value for SQL Server Performance CountersBy : Kasim Wirama, MCDBA, MCITPMonitoring database performance is proactive task that a DBA should do. Possible bottleneck for SQL Server is memory, processor, I/O subsystem, tempdb database, and locking. For SQL Server specifics, below list 阅读全文
posted @ 2011-09-21 09:22 Fanr_Zh 阅读(988) 评论(0) 推荐(0) 编辑

2011年9月16日

摘要: 原文是E文,做一下翻译并且提取一些重要的思路。1.定义业务规格What are your most critical business processes and how often are they processed (e.g. number of sales activities per day, number of client requests per day, etc.)最重要的业务流程是什么,使用频率如何What is regarded (required) as acceptable response times from the online application? How 阅读全文
posted @ 2011-09-16 23:30 Fanr_Zh 阅读(3422) 评论(0) 推荐(1) 编辑

摘要: 聚集索引:Clustered Indexes in SQL Server: Things You Need to Know- 08 Dec 2005数据库压力测试:How to Set Up a SQL Server Stress Test Environment in 8 Steps: Lessons From the Field- 01 Dec 2005数据库监控:SQL Server Monitoring in 8 Steps: Lessons From the Field- 02 Aug 2005基线tips:10 Baselining Tips for SQL Server: Les 阅读全文
posted @ 2011-09-16 22:50 Fanr_Zh 阅读(286) 评论(0) 推荐(0) 编辑

摘要: Downloading and Configuring SQLIOSQLIO Video Tutorial: http://sqlserverpedia.com/wiki/SAN_Performance_Tuning_with_SQLIO[Download SQLIO from Microsoft]Notice that I said SQLIO, not SQLIOSIM. Experienced database administrators will often direct you to SQLIOSIM because it's easier to use and mimic 阅读全文
posted @ 2011-09-16 14:45 Fanr_Zh 阅读(1244) 评论(0) 推荐(0) 编辑

摘要: Stress Testing Your SQL Server Databases - A Systematic ApproachStress Testing your SQL Server environments is a practice that can yield great benefits. Stress Testing can be used for performance tuning, to uncover bottlenecks, and for capacity planning among other things. In this article we will us 阅读全文
posted @ 2011-09-16 13:10 Fanr_Zh 阅读(1903) 评论(0) 推荐(0) 编辑

2011年9月13日

摘要: 下面给出了限制优化时间和事件数的建议:对于单个查询和小型工作负荷(少于 100 个事件),请指定无限制的优化时间。如果指定不限制优化时间,数据库引擎优化顾问将给出最佳建议,并且在大多数情况下,优化会在相对较短的时间内完成。对于大型工作负荷(多于 100 个事件),请考虑以下方案,其优先级以其列出顺序为准。首先考虑方案 1 到方案 3,最后考虑方案 (4)。如果用户在时间上有约束,请限制优化时间。如果优化固定数量的事件就足够了(例如,前 10,000 个事件可以代表其余工作负荷),请使用 dta 命令行实用工具,并通过 –n 参数指定事件数。如果使用的是 dta 命令行实用工具,并希望进一步限制 阅读全文
posted @ 2011-09-13 10:25 Fanr_Zh 阅读(288) 评论(0) 推荐(0) 编辑

2011年8月23日

摘要: This article describes a utility that is able to report the most common DBCC CHECKDB errors significantly faster than DBCC CHECKDB does itself. This can be very important in determining quickly the correctness of data in large databases.Now that I have your attention I should point out this utility 阅读全文
posted @ 2011-08-23 15:28 Fanr_Zh 阅读(473) 评论(0) 推荐(0) 编辑

2011年8月18日

摘要: So lately I've been geeking out on SQL internals. My most recent find involves a couple of undocumented toys,DBCC Pageandsys.system_internals_allocation_units.DBCC Page will actually display the contents of a page. I found a blog post byPaul Randal, back when he still worked for Microsoft, descr 阅读全文
posted @ 2011-08-18 12:25 Fanr_Zh 阅读(343) 评论(0) 推荐(0) 编辑

2011年8月17日

摘要: 问题: 原因: 不详处理办法: 1.安装powershell 2.0 (WindowsServer2003-KB968930-x86-CHS.exe) 2.安装Baseline configuration analyzer 2.0(MBCA_Setup32.msi) 3.安装SQL Server 2008 r2 bpa 在安装之前 现在cmd 下运行:msiexec /i <MSI Name> SKIPCA=1 安装bpa,安装完成之后 运行powshell :1.Enable-PSRemoting。 2.winrm set winrm/config/winrs `@`{MaxSh 阅读全文
posted @ 2011-08-17 12:36 Fanr_Zh 阅读(658) 评论(0) 推荐(0) 编辑

摘要: from :http://www.cnblogs.com/yxp132/articles/49224.htmlBest Practices Analyzer Tool for Microsoft SQL Server 2000是Microsoft SQL Server开发团队开发的一个数据库管理工具,可以让你检测设计的数据库是否遵循SQL Server操作和管理的最佳实践准则。这些准则公认有助于提高数据库的性能和效率,并让应用程序易于维护。1,安装SQL BPA后,启动界面如下所示:2,开始使用SQL BPA最佳实践分析器安装完成后会有一个SQL Server Best Practices A 阅读全文
posted @ 2011-08-17 12:11 Fanr_Zh 阅读(401) 评论(0) 推荐(0) 编辑

2011年8月15日

摘要: 问题: 在profile 过滤 设置了 object_name 但是profiler 还是其他对象的sql语句原因: 因为跟踪的事件中没有object_name 因此无法过滤 因为 使用的这两个事件导致 该问题解决方法: 选择有object_name 的事件跟踪 阅读全文
posted @ 2011-08-15 18:00 Fanr_Zh 阅读(345) 评论(0) 推荐(0) 编辑

摘要: 问题: 主数据库设置镜像时,报错: 消息1418,级别16,状态1,第1行 服务器网络地址"TCP://10.0.3.227:7024"无法访问或不存在。请检查网络地址名称,并检查本地和远程端点的端口是否正常运行。原因: 不明,估计是数据库出现恢复分支的关系解决办法: 重新做一遍 数据库镜像,从头到尾 阅读全文
posted @ 2011-08-15 14:08 Fanr_Zh 阅读(609) 评论(0) 推荐(0) 编辑

2011年8月12日

摘要: top详细使用说明from:http://space.itpub.net/12330444/viewspace-616258功能说明:显示,管理执行中的程序。语 法:top [bciqsS][d <间隔秒数>][n <执行次数>]补充说明:执行top指令可显示目前正在系统中执行的程序,并通过它所提供的互动式界面,用热键加以管理。参 数:b 使用批处理模式。c 列出程序时,显示每个程序的完整指令,包括指令名称,路径和参数等相关信息。d<间隔秒数> 设置top监控程序执行状况的间隔时间,单位以秒计算。i 执行top指令时,忽略闲置或是已成为Zombie的程序。n 阅读全文
posted @ 2011-08-12 21:51 Fanr_Zh 阅读(1268) 评论(0) 推荐(0) 编辑

2011年8月11日

摘要: 启用指定的跟踪标记。DBCC TRACEON ( trace# [ ,...n ][ , -1 ] ) [ WITH NO_INFOMSGS ]禁用指定的跟踪标记。DBCC TRACEOFF ( trace# [ ,...n ] [ , -1 ] ) [ WITH NO_INFOMSGS ]显示跟踪标志的状态。DBCC TRACESTATUS ( [ [ trace# [ ,...n ] ] [ , ] [ -1 ] ] ) [ WITH NO_INFOMSGS ]跟踪标志用于临时设置特定服务器的特征或关闭特定行为。例如,如果启动 SQL Server 的一个实例时设置了跟踪标志 3205,将 阅读全文
posted @ 2011-08-11 14:51 Fanr_Zh 阅读(431) 评论(0) 推荐(0) 编辑

摘要: 下面的示例演示必须对驻留在 HOST_A 上的一个伙伴执行哪些操作。在此示例中,两个伙伴是三个计算机系统上的默认服务器实例。两个服务器实例在非信任的 Windows 域中运行,因此需要基于证书的身份验证。HOST_A 担当初始主体角色,HOST_B 担当镜像角色。使用证书设置数据库镜像涉及四个常规阶段,本示例演示其中的三个阶段:1、2、4。这些阶段如下:配置出站连接本示例显示了下列操作的步骤:为出站连接配置 Host_A。为出站连接配置 Host_B。有关设置数据库镜像的这一阶段的信息,请参阅如何允许数据库镜像使用证书进行出站连接 (Transact-SQL)。配置入站连接本示例显示了下列操作 阅读全文
posted @ 2011-08-11 14:42 Fanr_Zh 阅读(527) 评论(0) 推荐(0) 编辑

2011年8月10日

摘要: 注意,如果要进行静默安装, 需要将QUIET参数修改为True, 并且删除或注释掉UIMODE参数, 然后在命令行窗口运行setup程序 : setup.exe /Q /IACCEPTSQLSERVERLICENSETERMS /AGTSVCPASSWORD="mssqld" /SQLSVCPASSWORD="mssqld" /ASSVCPASSWORD="mssqld" /RSSVCPASSWORD="mssqld" /ISSVCPASSWORD="mssqld" /FTSVCPASSWORD 阅读全文
posted @ 2011-08-10 13:42 Fanr_Zh 阅读(3880) 评论(0) 推荐(1) 编辑

2011年8月9日

摘要: Configuring SQL Protocols through Windows PowerShellSometimes we are asked about the possibility of configuring SQL Server protocols through PowerShell.In SQL Server 2008, the sqlps tool incorporates WMI and SMO into this powerful Windows administrator tool, making it easy to manage SQL Server proto 阅读全文
posted @ 2011-08-09 14:21 Fanr_Zh 阅读(819) 评论(0) 推荐(0) 编辑

2011年8月5日

摘要: 问题:sql server errorlog 文件报错Using 'dbghelp.dll' version '4.0.5'*Dump thread - spid = 1, PSS = 0x19e44098, EC = 0x19e443c0** User initiated stack dump. This is not a server exception dump.*并且有相应的 SQLDump***.txt 文件。结果: 未能看懂 这个 txt文件。 没有在其中找到错误相关的内容 手动调用dbcc stackdump 会引起这个问题 阅读全文
posted @ 2011-08-05 10:49 Fanr_Zh 阅读(701) 评论(2) 推荐(0) 编辑

2011年7月29日

摘要: 简介 关系数据库中的关系必须满足一定的要求,即满足不同的范式。 目前关系数据库有六种范式:第一范式(1NF)、第二范式(2NF)、第三范式(3NF)、第四范式(4NF)、第五范式(5NF)和第六范式(6NF)。满足最低要求的范式是第一范式(1NF)。在第一范式的基础上进一步满足更多要求的称为第二范式(2NF),其余范式以次类推。一般说来,数据库只需满足第三范式(3NF)就行了。第一范式(1NF)无重复的列 所谓第一范式(1NF)是指数据库表的每一列都是不可分割的基本数据项,同一列中不能有多个值,即实体中的某个属性不能有多个值或者不能有重复的属性。如果出现重复的属性,就可能需要定义一个新的实体, 阅读全文
posted @ 2011-07-29 09:21 Fanr_Zh 阅读(285) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页