cancel
Showing results for 
Search instead for 
Did you mean: 

SQLStored Procedure

Former Member
0 Kudos

Hi,

ive problem with SQlstoredprocedure...

i have one like this:

CREATE PROCEDURE dbo.test

@in_surname char(255),

@surname char(255) OUTPUT,

@name char(255) OUTPUT,

@subsidiaries char(255) OUTPUT,

@dep_position char(255) OUTPUT,

@phone_number char(255) OUTPUT,

@fax_number char(255) OUTPUT,

@email char(255) OUTPUT

AS

SELECT @in_surname = RTRIM(@in_surname) + '%'

SELECT MyLegal_User.* FROM MyLegal_User

WHERE MyLegal_User.surname LIKE @in_surname

GO

but the problem is that the LIKE doesnt work correctly.. only values are given back that match exact the value given in input form..

does anyone know what is the problem?

Thanks for help!!

Karol

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

ok.. sorry.. the fields were wrong defined