Welcome to EMC Consulting Blogs Sign in | Join | Help

SSIS Junkie

Once upon a time this blog was a hive of activity. Now however its pretty lifeless as you can probably tell so if are pining for more of the same you can find me over at http://sqlblog.com/blogs/jamie_thomson. I look forward to seeing you there!

Using return types as parameters in T-SQL

In SQL 2005 we could write something like this:

declare @i int
select @i = dbo.udf_MyScalarFunction()
exec usp_MyStoredProc @i

In SQL 2008 we can write the same functionality more succinctly like this:

declare @i int = dbo.udf_MyScalarFunction()
exec usp_MyStoredProc @i

Wouldn’t it be nice if, in the future, all we had to write was this:

exec usp_MyStoredProc dbo.udf_MyScalarFunction()

?

If you agree, feel free to vote for it and add a comment.

Published 23 March 2009 20:32 by jamie.thomson
Filed under: ,
New Comments to this post are disabled

This Blog

Syndication

Powered by Community Server (Personal Edition), by Telligent Systems