Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting To VFP Database Using VFPOLEB
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01305538
Message ID:
01305543
Vues:
9
SQLSTRINGCONNECT() prompts me for a data source. Is there a way to do this with a connection string?

>Would SQLSTRINGCONNECT() work????
>
>>What's wrong with this?
>>
>>
>>sDatabase = "c:\projects\mydatabase.dbc"
>>sConnString = "Provider=vfpoledb.1;Data Source=" + sDatabase
>>
>>iHandle = SQLCONNECT(sConnString)
>>
>>IF iHandle > 0
>>
>>	? "Connect"
>>	
>>	SQLDISCONNECT(iHandle)
>>
>>ELSE
>>	? "Unable to connect"
>>ENDIF
>>
>>
>>I'm getting "Connectivity error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform