- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 出差香港
Hong Kong Hospital Authority(医管局)的SQL Server出了问题,SQL Server会不定期的产生stack dump,有时候产生stack dump后还会hang住。问题又被上升到Political的高度(哎,不知道那里来的这么多Political问题,什么问题一扯到它就麻烦),香港方面直接打电话给Wing要求onsite.于是安排我去,找Visa Desk更新
2005-06-17 17:48:00 1011
原创 SQL Server 2005: 利用新的ranking函数实现高效的数据分页操作
最近MSDN Magazine上的一篇文章10 Tips for Writing High-Performance Web Applications提到了有效的数据分页技术对提高ASP .NET程序性能的重要性;并给出了一个实现数据分页的stored procedure的例子,抄录如下: CREATE PROCEDURE northwind_OrdersPaged( @Pag
2005-01-19 15:37:00 1332 1
原创 SQL Server merge replication: 巧用Merge Agent的hostname参数创建dynamic filter
我们知道,SQL Server 2000的Merge Replication支持dynamic filter的功能。如果我们有多个subscriber,每个subscriber只需要维护自己特定的数据,这时候我们只需创建一个publication, 然后利用dynamic filter的功能,把每个subscriber需要的特定数据复制过去。最常用的用于dynamic filter的系统函数是SU
2005-01-19 13:33:00 1752
原创 SQL Server 2000 Reporting Services: 怎样根据用户的语言偏好显示本地化的信息
Microsoft的Reporting Servcies发布以来,由于其简单易用,功能强大,越来越多的用户选择它来做为报表解决方案。在当今国际化的大趋势下,很多用户在使用Reporting Servcies的时候会遇到一个难题,那就是怎样根据用户的语言偏好显示本地化的信息,比如为中国的用户显示中文的报表标题,为美国的用户显示英文的报表标题;还有如为不同国家的用户显示不同的货币符号等。本文提供了解决
2005-01-18 14:19:00 1557
原创 SQL Server加过密的存储过程可以被解密?
1. Protecting the stored procedure and making it totally non-decryptable is technically impossible. There has to be a way to reverse it so that SQL Server can generate the execution plan and execute t
2005-01-14 14:47:00 928
原创 怎样手工删除数据库里的Merge Replication信息
1. The best way is to run sp_removedbreplication.2. After you run sp_removedbreplication, you may run the followingscript in your restored database. This script will generate the dropcommands for repl
2004-12-15 16:53:00 804
原创 用DTS导入文本文件时, 怎样跳过文本文件的第一行和最后一行
Suppose we have a table as follows:CREATE TABLE [ignore_rows] ( [c1] [int] NULL , [c2] [char] (10) )And the text file is as follows:1,aaa2,bbb3,ccc100,dddTo ignore the first and the last row o
2004-11-22 11:35:00 1524
原创 怎样查询磁盘的可用空间,数据库数据文件及日志文件大小及利用率
1. To check the available disk space, you may use the undocumented system extended stored procedure xp_fixeddrives, which can return the available free space (MB) for each fixed drive. You can run it
2004-11-22 11:13:00 1523
原创 怎样把login从一个SQL Server 2000实例导入到另一个实例
1. 使用T-SQL你可以先在源SQL Server上运行下面的脚本,该脚本会生成可以执行的T-SQL语句;然后您把这些生成的T-SQL语句在目的服务器上执行就可以了:SET NOCOUNT ONSELECT EXEC sp_addlogin @loginame = + loginname + ,, @defdb = + dbname + ,, @defl
2004-10-08 18:14:00 1143
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人