Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO and parmaeterized views...
Message
 
 
À
12/09/2001 12:47:25
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00555585
Message ID:
00555818
Vues:
31
Hi!

Try following:

cmdCommand = CreateObject("ADODB.Command")
cmdCommand.ActiveConnection = objConnection && connection object if you already prepared it
cmdCommand.CommandType = adCmdTable
cmdCommand.CommandText = "MyViewName"

parParam = cmdCommand.CreateParameter("ParamName", adVarChar, adParamInput, 30, "Test")
cmdCommand.Parameters.Append(parParam)

cmdCommand.Execute

HTH.

>Hello,
>
> I have a form with the adodc control on it. I am linking the adodc to a SQL server database. I want to set the recordsource to a parameterized view on the database. How do I pass the parameter to the view through the adodc control?
>
>Thanks,
>
>Jim
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform