董晓涛(David Dong)

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

2005年6月29日 #

摘要: /* ***** This entire comment portion is not necessarily part of SP, just notes on subject ***** The purpose of this SP is to provide a method in T-SQL to launch another T-SQL thread without havin... 阅读全文
posted @ 2005-06-29 12:03 董晓涛 阅读(788) 评论(0) 推荐(0) 编辑

摘要: Don't Use Select * Something you see in a lot of database access code is a select statement that looks something like this: SELECT * FROM TableName WHERE ... While there's technicall... 阅读全文
posted @ 2005-06-29 11:56 董晓涛 阅读(335) 评论(0) 推荐(0) 编辑

2005年6月22日 #

摘要: Sql Server数据库被置疑后解决方法 现象:数据库Log日志太大了,shrink不掉。于是想把数据库文件卸下来,删除log,再附加上。附加失败。 提示错误: 服务器: 消息 1813,级别 16,状态 2,行 1 未能打开新数据库 'metadb'。CREATE DATABASE 将终止。 设备激活错误。物理文件名 'd:\metadb.LDF' 可能有误。 环境:MSSQL SERV... 阅读全文
posted @ 2005-06-22 08:56 董晓涛 阅读(1819) 评论(1) 推荐(0) 编辑

2005年5月10日 #

摘要: 前几天和一个朋友聊天的时候他说当存储非常超过8K数据的时候使用Text,ntext OR Image时,就像把这些东西扔进一个黑箱子里面,感觉这个比喻比较形象,当我们把数据存储在这几种数据类型中后,会有非常多的限制。 我们都知道当使用这三个数据类型时,如果我们需要对其进行操作时,就会发现非常麻烦,比如替换其中的某些字符,进行插入,更新时也比较麻烦。时隔5年,让我们来看一下在SQL Serv... 阅读全文
posted @ 2005-05-10 13:49 董晓涛 阅读(1771) 评论(1) 推荐(0) 编辑

2005年5月8日 #

摘要: SQL Server 2000 Service Pack 4 is now a released product. for more information: http://www.microsoft.com/sql/downloads/2000/sp4.asp 阅读全文
posted @ 2005-05-08 09:24 董晓涛 阅读(292) 评论(0) 推荐(0) 编辑

2005年4月30日 #

摘要: 数据规范化!!! 以前看到有网友在提问问题给表例的时候,可以明显看出这个关系不符合最基本的INF,2NF, 3NF!下面我就简要介绍一下关系的规范化中的第一范式,第二范式和第三范式!这是关系规范化中最基本的! 第一范式:每个分量必须是不可再分的数据项!如你可以把姓和名分... 阅读全文
posted @ 2005-04-30 07:35 董晓涛 阅读(1117) 评论(2) 推荐(0) 编辑

2005年4月23日 #

摘要: Microsoft SQL Server 2005 and Vs.net 2005 April 2005 Version. 微软三月份才出来一个SQL Server 2005和Vs.net 2005的beta版,现在在推出了一个新的April 10Beta.今天下载了一下,用一下。 先看了一下.net Framework version: v2.0 50110 现在的这个是: v 2.0.5021... 阅读全文
posted @ 2005-04-23 08:59 董晓涛 阅读(479) 评论(1) 推荐(0) 编辑

2005年4月19日 #

摘要: XML IN 20 MINUTES! http://www.sqlservercentral.com/columnists/lplatt/20010422115709_1.asp This article will quickly dive head first right into XML. I will take an everyday object and attempt to de... 阅读全文
posted @ 2005-04-19 10:45 董晓涛 阅读(833) 评论(0) 推荐(0) 编辑

2005年4月16日 #

摘要: the following is the SP demo: usingSystem; usingSystem.Data; usingSystem.Data.Sql; usingSystem.Data.SqlServer; usingSystem.Data.SqlTypes; publicpartialclassStoredProcedures { [SqlPr... 阅读全文
posted @ 2005-04-16 18:54 董晓涛 阅读(299) 评论(0) 推荐(0) 编辑

摘要: XQuery is a language for XML data.XQuery syntax includes and extends XPaths 2.0 expressions and makes it possible to perform complex queries against on XML data source. An XQuery path is based on the ... 阅读全文
posted @ 2005-04-16 13:30 董晓涛 阅读(627) 评论(2) 推荐(0) 编辑