Me

随笔 - 24, 评论 - 460, 引用 - 73

导航

每月存档

最新留言

广告

关于一个不大常用的SQL数据类型-UNIQUEIDENTIFIER

当你正在处理被多个站点(像在跨国公司条件下)使用的大数据库时,你也许会遇到保证表格对象唯一性这样的棘手问题。在这种情形下,可能只能靠UNIQUEIDENTIFIER来解决。UNIQUEIDENTIFIER是一个保存全局唯一标识符的GUID数据类型。GUID是一个保证唯一的二进制数,因此几乎没有别的计算机会产生同一个值。

GUID的唯一值是由计算机网卡的标识数加上一个CPU时钟产生的唯一数而得到的。网卡制造商至少在下一个100年内能保证网卡的唯一性。

UNIQUEIDENTIFIER值不能像IDENTITY属性那样自动产生。要想为你的表格对象产生UNIQUEIDENTIFIER值,你必须指定NEWID函数为column的缺省值。

例如,如果你想要创建一个表格列出你的跨国公司的所有子公司的尖端产品的收入,并且你希望指定一个GUID数据类型,那么你可以键入:

CREATE TABLE NetRevenueTable

(UniqueColumn UNIQUEIDENTIFIER DEFAULT NEWID(),

Characters VARCHAR(10))

在数据库工具中,你要在数据库图表中或当你正在设计一个表格时做这件事情。为你想唯一确定的column选择Is RowGUID。缺省情况将是(newid()),它自动产生RowGUID。

尽管在许多情况下你必须保证表格对象的唯一性,但是如果你决定使用UNIQUEIDENTIFIER数据类型,请注意以下特性:

  1. 这些值是长而且难懂的。
  2. 这些值是随机的,不带有对用户有意义的样式。
  3. 这些值在依靠连续增加的值的应用程序中很难使用。
  4. 这些值有16字节,很大,因此用这些钥匙构建索引会更慢。

posted on 2003-10-28 17:19:00 by Roy  评论(14) 阅读(8973)

关于一个不大常用的SQL数据类型-UNIQUEIDENTIFIER

当你正在处理被多个站点(像在跨国公司条件下)使用的大数据库时,你也许会遇到保证表格对象唯一性这样的棘手问题。在这种情形下,可能只能靠UNIQUEIDENTIFIER来解决。UNIQUEIDENTIFIER是一个保存全局唯一标识符的GUID数据类型。GUID是一个保证唯一的二进制数,因此几乎没有别的计算机会产生同一个值。

GUID的唯一值是由计算机网卡的标识数加上一个CPU时钟产生的唯一数而得到的。网卡制造商至少在下一个100年内能保证网卡的唯一性。

UNIQUEIDENTIFIER值不能像IDENTITY属性那样自动产生。要想为你的表格对象产生UNIQUEIDENTIFIER值,你必须指定NEWID函数为column的缺省值。

例如,如果你想要创建一个表格列出你的跨国公司的所有子公司的尖端产品的收入,并且你希望指定一个GUID数据类型,那么你可以键入:

CREATE TABLE NetRevenueTable

(UniqueColumn UNIQUEIDENTIFIER DEFAULT NEWID(),

Characters VARCHAR(10))

在数据库工具中,你要在数据库图表中或当你正在设计一个表格时做这件事情。为你想唯一确定的column选择Is RowGUID。缺省情况将是(newid()),它自动产生RowGUID。

尽管在许多情况下你必须保证表格对象的唯一性,但是如果你决定使用UNIQUEIDENTIFIER数据类型,请注意以下特性:

这些值是长而且难懂的。
这些值是随机的,不带有对用户有意义的样式。
这些值在依靠连续增加的值的应用程序中很难使用。
这些值有16字节,很大,因此用这些钥匙构建索引会更慢。

posted on 2003-10-28 17:16:00 by Roy  评论(3) 阅读(2414)

Test Track - 软件质量控制和Bug跟踪

前几天看到纯技术视点的一篇关于利用 SharePoint Service 来实现软件测试管理的文章中提到一个用于质量控制和Bug跟踪的软件-Test Track。试用下来觉得真是不错,以前也用过Rational的类似产品。

Test Track 主要由3部分组成,Server、Client和Lisence Server。Client可以是web和应用程序界面,应用程序Client可以很好的和Visual Studio、Visual Studio.Net结合,感觉还是应用程序Client比较好,毕竟Web的输入方式和易用性差了很多。整体功能非常完备,类似微软内部使用的RAD。至于微创的BMS没有比较过,不好说:)

 

 

TestTrack Pro 6.0 includes completely customizable workflows, multiple user assignments, enhanced email notifications, more security options, additional custom fields, simplified licensing, and more.

Completely customizable TestTrack Pro's workflow to meet your needs

TestTrack Pro 6.0’s fully customizable workflows enable you to define states, events, and state transition rules. In version 6.0, you can model your most complex workflow processes. TestTrack Pro 6.0 can even diagram the workflow for you!

TestTrack Pro 6.0 ships with the standard TestTrack workflow, letting you get up and running with minimal effort.

No more choosing between Web
and Windows clients

TestTrack Pro 6.0 users can log in to the Web or Windows client without purchasing separate licenses, saving you money and giving your users the choice of how they access TestTrack Pro. The Web and Windows clients support both named and floating licenses, providing maximum licensing flexibility.

As before, Web and Windows administration clients are also provided, giving you the flexibility to manage TestTrack Pro from any location or operating system.

Enhanced email notifications keep users better informed of issues

TestTrack Pro 6.0 provides more control over who receives email notifications for specific events, products, issue types, and more. Version 6.0 also includes an unlimited number of customizable email templates and supports HTML-based email.

Assign issues to multiple users

Need to assign a fixed defect to your QA team for verification? TestTrack Pro 6.0 can handle this and other group assignment tasks with ease. Need everyone in the group to sign off before moving the issue to a new state? TestTrack Pro 6.0 handles this too, giving you more control over your process.

Even better custom field support

You can now define up to 100 custom fields for your issues. In addition, TestTrack Pro 6.0’s enhanced SOAP API supports full access to custom fields, enabling you to solve more business problems using TestTrack Pro and SOAP-compliant development tools.

Share users across TestTrack Pro databases and between TestTrack Pro
and Surround SCM

The new license server manages your users and software licenses between Seapine's products, beginning with TestTrack Pro 6.0 and Surround SCM 2.0.

No more adding the same user to five separate TestTrack Pro databases or managing multiple login names for the same user between different products. The license server consolidates your users’ accounts and shares them with TestTrack Pro 6.0, Surround SCM 2.0 and future Seapine products, simplifying administration for you and eliminating confusion for your users.

More secure than ever

TestTrack Pro 6.0’s new password options make it easier for you to enforce security and reduce unauthorized access to defects and development issues. New options give the administrator the ability to enforce hard-to-break user passwords with specific content requirements and minimum lengths. 512-bit encrypted client/server communications keep your data secure over Internet connections.

Additional custom fields in events

Issue event records now support file attachments, custom fields, and time tracking fields, giving you more control over the fields defined for each event. Need to require your users to enter a “Build Number” during a “Release to Testing” event? TestTrack Pro version 6.0 is the solution.

and much more...

TestTrack Pro 6.0 has many additional features and enhancements to help you keep your development projects on track and running smoothly.

posted on 2003-10-24 13:03:00 by Roy  评论(17) 阅读(5213)

关于VMWare和Virtual PC的一些比较

最近研究了一下VMWare和Virtual PC发觉他们在技术实现上有很大不同。

内存篇
首先说VMWare,使用那种类似抢占资源式的实现方法,既你为虚拟机分配好内存大小后,一旦运行起来他就会将你分配给他的内存占用起来,而不管是否真的实际使用。
而VPC恰好相反,他会更具你实际使用情况来动态增加。
评论:看起来好像是VPC的方式更加好,但是实际运行速度绝对是VMWare快很多。

硬盘篇
VMWare,它的硬盘是你给他指定大小后就不可以更改,但可以加第二块硬盘。类似PC
VPC,可以动态扩展硬盘。
评论:实际使用VMWare的磁盘效率远远高于VPC

总结
既然VMWare在模拟PC上比VPC高很多,微软为啥选择VPC???要注意的是VPC这家公司不光做PC模拟器,包括PPC模拟器和PS模拟器都是他们的产品。

PS:不能在VMWare虚拟机上运行PPC模拟器!!!悲伤的脸

posted on 2003-10-22 13:10:00 by Roy  评论(146) 阅读(60151)

困惑

前几天一直在看有关Smart Device开发的文章,想做一个可以在PPC上看Blog的软件,梦想做的好的话可以卖给老外,但是昨天却受到了打击,原来早就有一个软件叫PocketRss就是用来看Blog,而且只卖$5.00。咳!什么世道,做什么都那么难。不过我想基于Smart Device的开发是将来一个新的软件行业发展方向,问题是现在国内环境还不成熟。共享软件道路不好走悲伤的脸

微软的Enterprise Solution Patterns Using Microsoft .NET 

This document provides a brief overview of Enterprise Solution Patterns Using Microsoft .NET, which embraces existing work in the patterns community, contributes new patterns, and shows how to implement these patterns in .NET. Included in the guide are an introduction to patterns and a catalog of 32 architecture, design, and implementation patterns.

这几天也在看,真的非常不错。以前感觉微软在设计模式等等方面,要远远落后Java阵营。总是很容易让你入手但是要开发出企业级应用却没什么好的方法。看来微软要奋起直追了。

posted on 2003-10-20 13:07:00 by Roy  评论(5) 阅读(1469)

关于PPC模拟器和一个PPC IE Browser component

昨天晚上回去又搞了一下那个PPC 模拟器,还是不能在我的XP上运行。今天又在同事的XP上试了试,居然没有问题。我k!!看来要重装机器了,这到让我想了一个好办法。就是以后自己的XP只跑office, messenger等等平时用的程序, 然后装个vmware所有开发程序都跑在虚拟机上,免得机器老是要重装。还可以开多个虚拟机一起跑,幸好我的本本是512内存的。

不过昨天还算有些收获,搞定了一个可以在PPC上用的IE Browser 控件 for .net CF。咧嘴笑脸

posted on 2003-10-17 11:59:00 by Roy  评论(16) 阅读(10855)

开篇

首先感谢开心老大帮我开了这个帐号。

这两天在看.net compact framework, 准备开始做一个PPC的项目,完全出于自己的爱好。

昨天晚上在家里试验用visual studio .net 2003开发mobile程序,结果发现PPC 2003模拟器死活在我的XP上装不上去,说是没有administator权限,可是我是administrator啊,像是认不出设备。今天早上到单位里用2000一试就好,ft!!!

推荐几个ppc开发相关网站

  1. http://www.pocketpcdn.com/ 一个综合网站内容丰富,不过好像要用Proxy才能访问。
  2. http://www.opennetcf.org/ 一个专门做CF控件的网站,开源的哦!

posted on 2003-10-16 13:36:00 by Roy  评论(5) 阅读(1724)

Powered by: Joycode.MVC引擎 0.5.2.0