Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DSN
Message
De
27/10/1998 14:05:29
Robert Byrd
National Association of Homebuilders
Washington, District de Colombia, États-Unis
 
 
À
27/10/1998 13:39:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: DSN
Divers
Thread ID:
00151142
Message ID:
00151171
Vues:
24
I apologize. I did not ask the question properly.

I also need to find out if the SQLPREPARE and SQLEXEC functions are implemented in the same way as they would be with a DSN.

The reason I ask is that I cannot make it work.

Here is my code:

CREATE DATA worktbls\dataconn
CREATE CONNECTION ConVar CONNSTRING "DRIVE={SQL Server}SERVER=LISTMAKER_II;UID=sa;PWD=;DATABASE=listmaker"

=sqlprepare(ConVar,"Select * from list","list")
=sqlexec(ConVar)

When the SQLPREPARE executes I get the following error: "Variable ConVar is not found."

Is there something obvious that I am missing?



>Hiya Bob ---
>
>OPEN DATABASE mydata
>CREATE CONNECTION myconnection DATASOURCE cDSN
>
>cDSN=Character string of the system DSN.....or:
>
>CREATE CONNECTION myconnection USERID cODBCUser PASSWORD cODBCPW DATABASE cODBCdatabase CONNSTRING cODBCConnectString
>
>>How do I create a connection by using a connection string?
>>
>>Bob
Database Development Team
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform