Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter for IN ( '...', '...' )
Message
 
 
À
05/06/2007 07:18:49
Aman Bains
Jaguar Computers
Jalandhar, Inde
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01230497
Message ID:
01230511
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
You can use XML to pass list of values into SP. See Re: Sending a list from vfp Message #829213

>How do I send parameter to a stored procedure which expands to ['222','333']
>
>create procedure getMyVal @cPara varchar(50)
>as
>select * from <ctable> where id in (@cPara)
>
>calling
>
>cPara= "'222','333'"
>sqlexec(nHandle,"exec getMyVal ?cPara")
>
>I am not able to send an InList equivalent string to SQLserver SP. I want the parameter to contain something like '222','333' so that IN Clause works on multiple values.
>Can it work? Is there another way?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform