Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a SQL Server File DSN from within VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00764428
Message ID:
00764432
Vues:
30
not exactly sure what you mean with "visible to my users" but you can create a connection in your program like:
lcMyDSN = "DRIVER=SQL Server;SERVER=myServer;UID=whaterver;PWD=whatever;DATABASE=mydata;"
lnHandle = SQLSTRINGCONNECT(lcMyDSN)
is this what you need?

>Hi all,
>
>Looking for some advice. I'm currently playing around with using Sql Server 2000 as the backend with VFP. I've gotten it to work quite well using a System DSN, but the thought of making that available and visible to my users is quite a scary thought ! I'd like to create a File DSN and bury it on a server somewhere that I can just reference in my VFP programs to authenticate the user to SQL Server. Does anyone have any advice on accomplishing this ? I've created the file DSN, but I'm having a problem with the VFP syntax to call it. Thanks in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform