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
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01045982
Message ID:
01046010
Vues:
23
>Still getting an invlid connection:
>
>mpro30 = sqlc("Provider=sqloledb;Data Source=10.1.1.73,40873;Network Library=DBMSSOCN;Initial Catalog=Chains;user ID=chris;password=chris2;")

Hmmm.... normally I have wrapper methods so I do not have to deal with those directly
something like

lcConnectionString = This.GetConnectionString()
lnConnection = sqlStringConnect(lcConnectionString, This.lODBCShareConnection)


Ah, I see. You are using SQLConnect(), I am using SQLStringConnect.

With SQLConnect You will have to pass the single items as different parameters, i.e. different strings devided by colons.

the syntax is SQLCONNECT([cConnectionName | cDataSourceName [, cUserID [, cPassword ]][, lShared]])

However You are not passsing a connection- or DatasourceName but the Connectionstring. could You try with SQLStringConnect instead?
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform