使用waitfor time和waitfor delay在一定时间间隔下定时执行批处理 使用waitfor time和waitfor delay[@more@][case 1]WAITFOR TIME '01:20:04'begin declare @i int = 0 while (@i < 3) begi...
Troubleshooting: Connecting to SQL Server When System Administrators Are Locked Out http://msdn.microsoft.com/en-us/library/dd207004%28v=sql.105%29.aspx[@more@][run as Admin]Microsoft Windows [Versi...
Database Unit Testing Database Unit TestingDAL(Database Access Layer) Unit Testing[@more@]1. Database Unit Testinghttp://www.databasejou...
偶发的存储过程调用性能问题的一次调优过程 某存储过程调用频繁,绝大部分调用在1秒内结束。在每30分钟内,有30到40次调用超过10秒。从业务上我们知道这个过程调用很频繁,但到是什么程度,我们还不清楚。另外,从执行计划上来看,已经最优,没有优化SQL的空间了。下面是在这种...
获取SQL Server中连接的客户端IP地址 有时候需要获取连接到SQL Server服务器上的客户端IP地址,用什么办法呢?[@more@]SELECT *FROM sys.dm_exec_connectionsWHERE session_id = @@SPID...
SQL Server中常用全局变量和系统信息 在SQL Server中,全局变量是一种特殊类型的变量,服务器将维护这些变量的值。全局变量以@@前缀开头,不必进行声明,它们属于系统定义的函数。还有一些系统信息的获取方法,例如服务器上次启动时间。[@more@]全局变量名称描述...
SQL Server中查询用户的对象权限和角色的方法 SQL Server中查询用户的对象权限和角色的方法[@more@] -- 查询用户的object权限exec sp_helprotect NULL, 'UserName' -- 查询用户拥有的roleexec sp_helpu...
SQL Server 2005/2008 对With Encryption选项创建的存储过程解密 1. 创建sp__windbi$decrypt2. 使用DAC(专用管理员连接)连接到数据库3. 调用解密[@more@]http://www.cnblogs.com/kiant71/archive/2009/09/10...
SQL Server 索引使用分析 - SARG(Searchable Arguments) SARG的定义:用于限制搜索的一个操作,因为它通常是指一个特定的匹配,一个值得范围内的匹配或者两个以上条件的AND连接。形式如下:列名 操作符 或 操作符列名[@more@]很多人不知道SQL语句在SQL SER...
在Eclipse中用JDBC连接Sql Server 2005总结 原帖及讨论:http://bbs.bccn.net/thread-140292-1-1.html* 最近因为开发活动需要,用上了Eclipse,并要求使用精简版的SQL数据库(即Sql server 2005)来进行开发项目 *...
Sql server 2005中output用法解析 SQL Server 2005中的output子句,可以使你从修改语句(INSERT、UPDATE、DELETE)中将数据返回到表变量中。带结果的 DML 的有用方案包括清除和存档、消息处理应用程序以及其他方案。[@mo...
A Guide for SQL Server Backup Application Vendors Summary: SQL Server 2005 provides support for Volume Shadow Copy Service (VSS) by providing a writer (the SQL wr...
SQL Server Transaction Log Fragmentation: a Primer Generally, you will have no need to worry about the number of virtual log files in your transaction log. However...
Database Testing: How to Regression Test a Relational Database Why test an RDBMS? What should we test? When should we test? How should we test?Who should test? Introducing datab...
SQLite数据库访问编程及管理工具 工具SQLite AdministratorSQLite Database BrowserVisual studio 2005下使用SQLite数据库使用SQLite.NET访问SQLite结合Enterprise Librar...
一个小时内学习SQLite数据库 SQLite 是一个开源的嵌入式关系数据库,实现自包容、零配置、支持事务的SQL数据库引擎。 其特点是高度便携、使用方便、结构紧凑、高效、可靠。 与其他数据库管理系统不同,SQLite 的安装和运行非常简单,在大多数情况下 - ...
用CLR函数把HTMLCode转换为原字符 1. HTMLCode格式2. 转换方法3. 部署方法4. 调用方法[@more@]1. HTMLCoding格式因为安全方面的原因,网页提交html特殊字符例如,', "等和汉字时,常常被编码为HTMLCode格式。例如:[ ...
使用CLR函数压缩(Gzip)ntext类型字段 Gzip to StringString to Gzip[@more@]using System;using System.Data;using System.Data.SqlClient;using System.Data.S...
Monitoring Tempdb in SQL Server 2005 from: http://www.sqllion.com/2009/05/monitoring-tempdb-in-sql-server-2005/[@more@]As the tempdb database is the co...