Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter for IN ( '...', '...' )
Message
De
07/06/2007 10:28:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
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:
01231284
Vues:
16
What a coincidence... I need to do this today too. Is this method available in SQL Server 2000? If I remember correctly, sp_xml_preparedocument is only a SQL 2005 procedure.

>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?
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform