Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which Type Of SQL Connection String?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01054000
Message ID:
01054007
Vues:
21
>I'm converting a VFP app to SQL Server.
>
>Which syntax should I use:
>
>
>SQLCONNECT([nStatementHandle])
>
>
>or
>
>
>SQLCONNECT([cConnectionName | cDataSourceName [, cUserID [, cPassword ]][, lShared]])
>
Kevin,

I prefer to use:
SQLSTRINGCONNECT('DRIVER={SQL Server};SERVER=(local);database=AL;integrated security=true')
This connects to the SQL Server on my local PC using Windows Authentication. You can also substitue a username/password combination if you want.

HTH,
Chad
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform