Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Convert nulls to blanks
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

56 Posts

Posted - 01/24/2014 :  07:09:09  Show Profile  Reply with Quote

I would like to ammend Nulls to blanks for a decimal field to be as follows

Before ammending.


Once ammended, it should be as follows


My script

Convert(decimal(17,2),NULLIF( Customer.amount,''))

Customer.amount field Declared as Decimal (17,2)

Thank you in advance.


I learn something new everyday.

In (Som, Ni, Yak)

17689 Posts

Posted - 01/24/2014 :  08:16:32  Show Profile  Reply with Quote
This should be done in your client application. Doing it in SQL means, you are returning string to the application instead of decimals

Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000