Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DSN Less data
Message
De
12/02/2004 17:00:16
 
 
À
12/02/2004 16:50:11
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00876874
Message ID:
00876878
Vues:
11
>How do I have a form with a remote view and use a DSNless conection to the SQL server>
>
>The remote view is defined in a DBC.


I don't think you can use an existing remote view. DNSLess connections are mainly for using your own code in SQLEXEC() calls.

nHandle = SQLSTRINGCONNECT([Driver={SQL Server};Server=YourServerName;Database=YourDataBase;Uid=YourUser;Pwd=YourPassword;])
nStatus = SQLEXEC(nHandle,[SELECT * FROM YourTable],"CursorName")

Then you'd need to set all the properties to make it updatable, etc., yourself.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform