From: nzrdb6 on
Can you pass expressions to a proc?
From: Tibor Karaszi on
No, only values.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi



"nzrdb6" <nzrdb6(a)googlemail.com> wrote in message
news:76ca6815-fb69-4a25-822f-df3a32437f44(a)b7g2000yqd.googlegroups.com...
> Can you pass expressions to a proc?

From: Gert-Jan Strik on
nzrdb6 wrote:
>
> Can you pass expressions to a proc?

Tibor answered that.

Having said that, you don't really need an expression for the example
you posted in the subject, because an implicit conversion will handle
that.

create proc test (@a as int)
as
select @a
go

exec test '0123'
go

drop proc test

--
Gert-Jan