Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remind me, please SQL connection
Message
 
À
04/01/2019 10:16:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows Server 2016
Divers
Thread ID:
01665115
Message ID:
01665130
Vues:
48
>It's been awhile and I'm trying to connect to a MSSQL server with the following
>
>myconnstr = "driver = SQL Server; server=IPaddress; database=myDB; uid=myID; pwd=myPassword"
>
>when I issue the myconnection = SQLStringConnect(myconnstr) it keeps popping up asking me to select a DNS.
>
>What am I forgetting?
>tia

Hi Dorris,

Other than the driver written as Gregory Adam suggested, I would recommend you to add ;APP=YourApplicationName which is not necessary but very helpful if you are debugging using SQL Server Profiler (I also set WSID to SYS(0), but I think if you do not set it it will still work with the client's computer name anyways)

Cheers,
Hugo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform