董晓涛(David Dong)

博客园 首页 新随笔 联系 订阅 管理

2005年4月13日 #

摘要: Injection Attach We ALL know (I hope) that certain formulations OF dynamic SQL expose the DBMS TO special security risks called "injection attacks". Now we will discuss it and give you a way to pr... 阅读全文
posted @ 2005-04-13 11:19 董晓涛 阅读(376) 评论(0) 推荐(0) 编辑

2005年4月1日 #

摘要: Main Monitor counts about SQLServer 2000 The following describle the main counts about SQL Server.include: TOC \o "1-1" \n \h \z \u 1.Monitoring Memory and Paging File Use 2.Processor 3.Mo... 阅读全文
posted @ 2005-04-01 08:47 董晓涛 阅读(474) 评论(0) 推荐(0) 编辑

2005年3月25日 #

摘要: You may receive the following error message after installing SQL Server 2005: This application has failed to start because the application configuration is incorrect. Reinstalling the applicatio... 阅读全文
posted @ 2005-03-25 10:40 董晓涛 阅读(362) 评论(0) 推荐(0) 编辑

2005年3月23日 #

摘要: How to configure a store proc automatically exec when SQL Server Services start 通过这个例子,我们将大致了解如何使用Raiserror抛出错误信息以及让SQLServer启动时自动运行存储过程. 1.先为我们的SQLServer增加一个错误号为50008的message,然后我们就可以使用这个信息,在本... 阅读全文
posted @ 2005-03-23 18:41 董晓涛 阅读(1319) 评论(0) 推荐(0) 编辑

摘要: how to use danymic sql in SQL Server 2000 如何在T-SQL使用动态表名 declare @a nvarchar(1000) set @a='test11' set @a=N'create table '+@a+' ( a int) ' exec sp_executesql @a 另一种: declare @a nvarchar(1000) set @... 阅读全文
posted @ 2005-03-23 18:40 董晓涛 阅读(287) 评论(0) 推荐(0) 编辑

摘要: Unicode practice SELECT * FROM ::fn_helpcollations() note:now the database collation is:SQL_Latin1_General_CP1_CI_AS USE Northwind GO --Firs... 阅读全文
posted @ 2005-03-23 18:31 董晓涛 阅读(409) 评论(0) 推荐(0) 编辑

2005年2月19日 #

摘要: 临时表 和 表变量 我们经常使用临时表和表变量,那现在我们就对临时表和表变量进行一下讨论. 临时表 局部临时表 全局临时表 表变量 临时表 临时表存储在TempDB数据库中,所有的使用此SQL Server 实例的用户都共享这个TempDB,因为我们应该确保用来存储TempDB数据库的硬盘有足够的空间,... 阅读全文
posted @ 2005-02-19 19:12 董晓涛 阅读(371) 评论(0) 推荐(0) 编辑

2005年2月17日 #

摘要: 如何减少日志文件的空间 我们在应用程序开发过程中经常会出现由于要经常插入,删除和更改文件而导致我们的日志文件过大,此时我们就希望能够把减少日志文件所占有的空间.这经常有以下场景: 1.我们的日志对我们进行数据的恢复非常重要,如果我们以后要用它进行对数据进行恢复的话,我们就应该首先对它进行备份.备份过之后日志数据所占有的空间是少了,但... 阅读全文
posted @ 2005-02-17 19:45 董晓涛 阅读(436) 评论(0) 推荐(0) 编辑

2005年2月16日 #

摘要: There are several resources devoted to SQL Server. Here are Microsoft's: If you don't already have it installed, download Books Online right now. See Article #2229 for more information (it ha... 阅读全文
posted @ 2005-02-16 16:36 董晓涛 阅读(2118) 评论(0) 推荐(0) 编辑

摘要: 如何解决死锁问题 主要介绍如何得到死锁的住处,以及避免死锁产生的常用方法.主要包括: 环境准备 查看死锁信息 避免死锁的几个常用方法 环境准备: create table David01( A varchar(2) ,B varchar(2) ,C varchar(2)... 阅读全文
posted @ 2005-02-16 13:47 董晓涛 阅读(2930) 评论(0) 推荐(0) 编辑