Why Chinese Web site to choose the foreign web hosting

 - by Hector

Creating a web presence is an essential consideration in the modern world. Without a viable presence in the online environment, you are cutting yourself out of invaluable revenue streams. With China’s Internet censorship increasingly stringent, more and more webmaster want to get a foreign web hosting .

More hosting providers reduce the price of their hosts, many are under 5 dollars. In order to get the trust of users, Some of them promise 90-Day FULL Money Back Guarantee.

Las Vegas’ Real Estate with China

 - by Hector

Las Vegas Real Estate has always banked on its ability to bring in the tourist crowd largely drawn in by the large number of visitors going to Nevada to gamble. The number of tourist arrivals are also on the increase due to the opening up of the China Market with many Chinese tourists starting to flock to Las Vegas to spend some of their newly found wealth.

Las Vegas is reinventing itself tap into global demand for real estate, high-density urban model for the future.New government buildings, a Performing Arts Center, and extensive office and retail properties totaling over $5 billion dollars are being built.

Las Vegas is also natural disater free from hurricanes, tornadoes, and earthquakes drawing global businesses to consider the Las Vegas valley a great place to base a large business. lake las vegas is beautiful, too.

SQL server自定义数据类型

 - by Hector

用户定义的数据类型要放在使用他的数据库里才有效,由于存储过程中建立的临时表会建立在tempdb里面,所以要先在tempdb里执行,再在mastrer里执行
查看用户定义的数据类型:

sql2005: select * from sys.types where is_user_defined=1
sql2000:select * from systypes where xtype<>xusertype

自定义数据类型
建立在SQL server系统数据类型基础上的,需要指定该类型的名称,建立在其上的系统数据类型及是否充许为空。
方法:利用系统存储过程:sp_addtype
语法:sp_addtype type, [ system_data_type ] [ ,'nulltype' ]

The Sixth Disney World themepark

 - by Hector

Shanghai Disneyland Park, the second in China, Asia’s third, World’ sixth , has always been the world’s most expensive theme park built one.March 9, 2011, Shanghai International Tourism Resort controlling detailed planning of thecore area (draft) has been online publicity, Shanghai Disneyland is also this plan, the main project in the park April 8, 2011 officially started.
Shanghai Disneyland ticket prices have been the audience speculation, according to theShanghai price and consumption levels, prices will generally believed that 60 to 80 dollars, now Disneyland la tickets and other European Disneyland ticket prices higher,Hong Kong and Disneyland in Japan is relatively low price. But generally cheaper byscouring the Internet to the ticket, such as if you search Disneyland la tickets in google , you can find a different price at different website.

事务计数器和事务嵌套

 - by Hector
1.计数方法
事务计数器从0开始,没嵌套一个事务,事务计数器+1,COMMIT一个事务计数器-1.
注意:事务保存点属于事务内部,不会对事务计数器产生影响。

下面的示例演示嵌套的 BEGIN 和 COMMIT 语句对 @@TRANCOUNT 变量产生的效果。
[code lang="sql"]
PRINT @@TRANCOUNT
-- The BEGIN TRAN statement will increment the
-- transaction count by 1.
BEGIN TRAN
PRINT @@TRANCOUNT
BEGIN TRAN
PRINT @@TRANCOUNT
-- The COMMIT statement will decrement the transaction count by 1.
COMMIT
PRINT @@TRANCOUNT
COMMIT
PRINT @@TRANCOUNT
--Results
--0
--1
--2
--1
--0
[/code]

2. 事务回滚对事务计数器的影响
当子事务ROLLBACK之后,会直接清零TRANCOUNT,下面的示例演示嵌套的 BEGIN TRAN 和 ROLLBACK 语句对 @@TRANCOUNT 变量产生的效果。
[code lang="sql"]
PRINT @@TRANCOUNT
-- The BEGIN TRAN statement will increment the
-- transaction count by 1.
BEGIN TRAN
PRINT @@TRANCOUNT
BEGIN TRAN
PRINT @@TRANCOUNT
-- The ROLLBACK statement will clear the @@TRANCOUNT variable
-- to 0 because all active transactions will be rolled back.
ROLLBACK
PRINT @@TRANCOUNT
--Results
--0
--1
--2
--0[/code]
3.使用保存点确保事务嵌套时能正确回滚
[code lang="sql"]
begin transaction trn_example

update tableName set fieldName = @value
save transaction stk_savePoint
update tableName2 set fieldName2 = @value2
if @@error<>0
begin
rollback transaction stk_savePoint
commit transaction
return
end
else
begin
if @@rowcount = 0
rollback transaction
end
commit transaction
--如果第二个update出现错误,就返回到第一个update后提交,并且使用return截断后面的语句继续运行
--如果第二个update正确执行,就是更新的行数是0,就回滚整个事务,把第一个update执行的结果也取消
[/code]