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:
00764757
Vues:
26
Thanks guys for all the help !
Was able to get it to work with a few mods. Ended up looking as folows :

PUBLIC hconn
hconn = SQLSTRINGCONNECT([filedsn=c:\temp\sqlfiledsn.dsn])

IF hconn <= 0
= MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error')
ELSE
= MESSAGEBOX('Connection made', 48, 'SQL Connect Message')
= SQLEXEC(hconn,"SELECT * from testtable","test1")
= SQLDISCONNECT(hconn)
ENDIF

I'll end up putting the actual dsn somewhere on our network that the users won't be able to accidentally delete (like they did their System DSN's).

Thanks again.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform