SQL Server v.Next (Denali) : Metadata enhancements

Posted by AaronBertrand on SQL Blog See other posts from SQL Blog or by AaronBertrand
Published on Mon, 20 Dec 2010 15:09:00 GMT Indexed on 2010/12/20 17:52 UTC
Read the original article Hit count: 316

In my previous job, we had several cases where schema changes or incorrect developer assumptions in the middle tier or application logic would lead to type mismatches. We would have a stored procedure that returns a BIT column, but then change the procedure to have something like CASE WHEN <condition> THEN 1 ELSE 0 END. In this case SQL Server would return an INT as a catch-all, and if .NET was expecting a boolean, BOOM. Wouldn't it be nice if the application could check the result set of the...(read more)

© SQL Blog or respective owner

Related posts about Denali

Related posts about metadata discovery