Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and UDL
Message
De
18/01/2001 13:38:37
Bob Tracy
Independent Consultant
Driftwood, Texas, États-Unis
 
 
À
17/01/2001 20:01:23
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00464970
Message ID:
00465284
Vues:
11
Dan,

I don't think you can use the udl file with SQL Pass-Through, the formats of the connection string are different. You can use the udl directly in ADO:

oConn.ConnectionString="File Name=< fullpath >/myfile.udl"

You can use a DSNLess connection with SPT:

SQLSTRINGCONNECT("Driver={SQLServer};Server=MyServer;Database=Pubs;UID=;PWD=")

Also, if you copy the udl with the FILETOSTR function you will have to do some parsing since there is more than just the connection string in the file. Take a look at a udl with notepad. HTH
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform