Re: adding a query as parameter using 'contains' logic



On Tue, 13 Nov 2007 12:53:02 -0800, Texas Tonie wrote:

Hello,

Setting parameter ranges for a query is very useful.

How can I specify : begins with ...... and make that a parameter (in this
case first 5 digits of a project name)?

Liek '%[parameter3]%' does not work.

Hi Texas Tonie,

Try
LIKE @parameter3 + '%'

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
.