Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I execute stored procedure in SQL-server
Message
 
À
25/11/2004 10:10:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP3
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00963459
Message ID:
00964870
Vues:
7
Hi Cetin,

I have used the cursor adaptor to execute the stored procedure. This works fine when no pararameters are expected by the stored procedure. How do I specify the parameters for the cursor adaptor. Here is example of my code.

** create connecttion to database

oRecordSet.cursortype = 3
oRecordSet.LockType = 2
WITH loCursor
.ALIAS = 'mytab'
.DATASOURCETYPE = 'ADO'
.DATASOURCE = oRecordSet
.SELECTCMD = 'select_mytab_1'
.DATASOURCE.ACTIVECONNECTION = loConn
loCommand.ActiveConnection = loConn
IF .CURSORFILL (.F., .F., 0, loCommand)
BROWSE
ELSE
AERROR(laErrors)
MESSAGEBOX(laErrors[2])
ENDIF
loCommand.ActiveConnection = loConn
ENDWITH

Also, if i want to assign the returned data to textboxes and combos etc, how do I do that?
Stuart Reid

True nobility lies not in being superior to another man, but in being superior to one’s previous self
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform