Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Why it is returning * Expand / Collapse
Author
Message
Posted Thursday, September 20, 2012 1:06 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, June 12, 2013 1:41 AM
Points: 84, Visits: 271
hi All,

when i am executing the below query it is returning * instead of showing error.

select cast(123 as varchar(2))

means the length of the integer value is greater than the converting value that time it is showing the result.

thanks,
Post #1361763
Posted Thursday, September 20, 2012 1:41 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, June 14, 2013 8:33 AM
Points: 1,402, Visits: 6,950
Documented behaviour - http://msdn.microsoft.com/en-us/library/aa226054(v=sql.80).aspx#feedback, half-way down the article.

BrainDonor
Linkedin
Post #1361772
Posted Thursday, September 20, 2012 3:59 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, June 12, 2013 1:41 AM
Points: 84, Visits: 271
Thank you very much
Post #1361832
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse