BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LIKE % in Parametrized Result set Stored Procedures

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Alain Bastien
Guest





PostPosted: Mon Dec 20, 2004 2:34 pm    Post subject: LIKE % in Parametrized Result set Stored Procedures Reply with quote



Hi,

RE:LIKE % in Parametrized Result set Stored Procedures

In TQuery it works but not stored procedures
How to code it in a stored procedure?

select s_lname,s_fname, s_userid from table
where name like :searchname

Quote:
where 'searchname' could be the character and a % and the end

--
Alain



Back to top
Mauricio A MIRET
Guest





PostPosted: Sat Apr 16, 2005 5:20 pm    Post subject: Re: LIKE % in Parametrized Result set Stored Procedures Reply with quote



when you complete the param you can do

sp->ParamByNAme('SEARCHNAME')-> AsString = letter + '%';

or

String S = letter + "%";
sp->ParamByNAme('SEARCHNAME')-> AsString = S;

HTH

MAM


"Alain Bastien" <alain_bastien (AT) mydodo (DOT) net> escribió en el mensaje
news:41c6e32f (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

RE:LIKE % in Parametrized Result set Stored Procedures

In TQuery it works but not stored procedures
How to code it in a stored procedure?

select s_lname,s_fname, s_userid from table
where name like :searchname

where 'searchname' could be the character and a % and the end

--
Alain





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.