Tech Sharing Blog

Computer knowledge, news, product, SEO, earn money online sharing place

Advertisement

Posts Tagged ‘ Programming ’

mssql2005 T SQL: Concatenate something + null=null This whole morning just spent about 1 hours+ just to try out one very simpel query on MS SQL 2005.

I keeping get the null value whenever i run this query, even in my program or run directly from the MS SQL 2005 management studio.

Finally I found out that is you are concatenate null values, either the concat null yields null setting of sp_dboption or SET CONCAT_NULL_YIELDS_NULL determines the behavior when one expression is NULL.


With either concat null yields null or SET CONCAT_NULL_YIELDS_NULL enabled ON, String + NULL returns NULL. If either concat null yields null or SET CONCAT_NULL_YIELDS_NULL is disabled, the result is String?


This is the case 1

Update tableA
set field1 + ‘My value’
where field2 = 1


This is the case 2

select ‘test ‘ + null + ‘ string’

returns
————
NULL


This is the solution

set concat_null_yields_null off
select ‘test ‘ + null + ‘ string’

returns
————
test string

Popularity: 1% [?]

Notepad2

By on December 25, 2008

If you are looking for any light, syntax highlight, simple yet useful text editor for your programming, then you should have a look on the Notepad2.

 

Notepad2 is  open-source Notepad like application for Microsoft Windows, which released under the BSD software license. 

 

Notepad2 is develop by Florian Balmer using the Scintilla editor component, and was first publicly released in April 2004. Balmer based Notepad2 on the principle of Microsoft Notepad: small, fast and usable.

 

The most powerful features for Notepad2 is the syntax highlighting. It will detect the following computer language such as ASP, Assembly, C, C++, C#, CGI, CSS, HTML, Java, JavaScript, NSIS, Pascal, Perl, PHP, Python, SQL, VB, VBScript, XHTML and XML. It also will automatically highlight the following file formats such as BAT, DIFF, INF, INI, REG and configuration files (.properties)

 

Not only that, Notepad2 also including the Auto indentation, Bracket matching, encoding conversion between ASCII, UTF-8 and UTF-16 formats. In addition, it also include the features of Newline conversion, between DOS (CR/LF), Unix (LF) and Mac (CR) formats. Last but not lease, the regular expression based find and replace also including in Notepad2

 

Click here to download notepad 2 binary file

Click here to download notepad2 source code

 

notepad2 screen shot Notepad2

Notepad2 Screen Shot on Syntax Highlighting


notepad2 screen shot1 Notepad2

Notepad2 Screen Shot on Syntax Highlighting

Popularity: 1% [?]

SEO Powered by Platinum SEO from Techblissonline