Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection String
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01572287
Message ID:
01572289
Vues:
49
J'aime (1)
>Hi
>Anybody see whats wrong with following connection string:
>Driver=SQL Server;Server=MYSErver\MyName;Database=MyDatabaseUser Id=myname;Password=mypassword;Trusted_connection =yes
>
>Gives me Invalid Connection String
>
>I have this in a VFP app, when it gives an eror, I manually type in Server name, User name and Password and app runs fine
>
>I think I have the syntax of above wrong , but nit sur..gone onto ConnectionSrtings.com and still dont know whats wrong
>
>I tried a few variayions if UserID UID etc but nne worked
>Tia
>Ger

First off you are missing a semicolon before userID.

Second, you either use a trusted connection OR use a username/password. Not both.

Good examples at www.connectionstrings.com. Make sure you use what is correct for your version of SQL.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform