SQL Server
文章平均质量分 63
zhanli
这个作者很懒,什么都没留下…
展开
-
怎样把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 · 1125 阅读 · 0 评论 -
A Key SQL Server 2005 developer's blog
http://blogs.msdn.com/slavao原创 2005-01-31 09:46:00 · 876 阅读 · 0 评论 -
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 · 1317 阅读 · 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 · 1737 阅读 · 0 评论 -
SQL Server 2000 Reporting Services: 怎样根据用户的语言偏好显示本地化的信息
Microsoft的Reporting Servcies发布以来,由于其简单易用,功能强大,越来越多的用户选择它来做为报表解决方案。在当今国际化的大趋势下,很多用户在使用Reporting Servcies的时候会遇到一个难题,那就是怎样根据用户的语言偏好显示本地化的信息,比如为中国的用户显示中文的报表标题,为美国的用户显示英文的报表标题;还有如为不同国家的用户显示不同的货币符号等。本文提供了解决原创 2005-01-18 14:19:00 · 1541 阅读 · 0 评论 -
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 · 911 阅读 · 0 评论 -
怎样手工删除数据库里的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 · 789 阅读 · 0 评论 -
用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 · 1510 阅读 · 0 评论 -
怎样查询磁盘的可用空间,数据库数据文件及日志文件大小及利用率
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 · 1506 阅读 · 0 评论 -
一个实用的HTTP traffic探测工具:fiddler
http://www.fiddlertool.com/fiddler/原创 2005-05-20 16:54:00 · 1645 阅读 · 0 评论