Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem passing list as a Parameter
Message
De
14/11/2002 13:43:42
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00722806
Message ID:
00722844
Vues:
14
Works like a charm.

Thanx.

>If it's SQL 2000 than you would be better off using XML. See Re: Selecting records based on cursor values Message #690890.
>
>>I have a SP where a select a group of records based upon an ID passed. The ID is a string, max size is Character 8.
>>
>>For a single id this works.
>>select fk_name where cattorneyid = @firmid
>>
>>This also works for a single id.
>>select fk_name where cattorneyid in (@firmid)
>>
>>These are both run using exec Attorney_list '000449'
>>
>>However, I cannot pass a string containing more than 1 ID.
>>
>>exec Attorney_list '000449,105690'
>>OR
>>exec Attorney_list "'000449','10105690'"
>>
>>
>>Any ideas how I can pass a string with variable number of ids and run the select statement?
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform