Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The isnull function requires 2 arguments. 3

Status
Not open for further replies.

jeffsturgeon2002

Programmer
Sep 19, 2006
136
US
I'm hoping its just a matter of syntax wording ... Which I'm still learning ...

Is it possible to add an ISNULL to this code?

Code:
CONVERT(varchar,pp.Birthdate,101) AS Birthdate,

Typically, I use:

Code:
ISNULL(pp.Birthdate,'') AS Birthdate,

When I tried to get add an ISNULL to the code, it gave me the following remark: "The isnull function requires 2 arguments.
 
IsNull(CONVERT(varchar,pp.Birthdate,101), '') AS Birthdate,


-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
try this in QA
Code:
declare @d as datetime
set @d=null
Select CONVERT(varchar,isnull(@d,''),101) AS Birthdate
 
sorry should be
Code:
Select isnull(CONVERT(varchar,pp.Birthdate,101),'') AS Birthdate
 
Sorry gmmastros i did not refresh my explorer

have a star
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top