Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with sqlexec
Message
 
À
14/11/1997 16:29:55
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00060362
Message ID:
00060365
Vues:
21
>Hello All!!!!
>
>I finaly get to stablisher a conncetion with Data Source, but i didn't get do a correct select sql select, i'm using the follow sintax
>
>STORE SQLSTRINGCONNECT() TO nCONECTAR
>=SQLEXEC(nCONECTAR,'SELECT Video.codtitu, Video.tit_port;
> FROM user.video Video;
> WHERE Video.tit_port = 'rico total';
> ORDER BY Video.tit_port', 'MyCursor')
>
>but the VFP shows me a message speaking "FUNCTION NAME IS MISSING).
>
>Anyone have any idea?
>
>Thanks
>
>
>Anderson Reis Girardi

Anderson,

You need to keep in mind that the entire SQL statement is one string. When you put the single quotes around rico total, the first quote closes the string. Try This:

=SQLEXEC(nCONECTAR,[SELECT Video.codtitu, Video.tit_port;
FROM user.video Video;
WHERE Video.tit_port = 'rico total';
ORDER BY Video.tit_port], 'MyCursor')

If you're using SQL Server, make sure you use single quotes around any value inside the string, as shown above.

Josh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform