Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem w/parameterized sql stmt
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00661706
Message ID:
00661735
Vues:
19
>Using the Query Builder in the Data Adapter Config Wizard I build the statement: SELECT HINIT,HNAME FROM HWHOA WHERE (HINIT = ?). Keep getting error: No value given for one or required parameters. Hardcoding the search value (HINIT = "BWP") works fine...
>
>-Todd

SELECT HINIT,HNAME FROM HWHOA WHERE (HINIT = @hinit)

where hinit is the parameter name. The config wizard should create the required parameter initialization code for you. All you need to do is load the parameter value(s) before executing the select.
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform