Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Connectstring as variable
Message
De
27/11/2004 02:59:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
How to use Connectstring as variable
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00965088
Message ID:
00965088
Vues:
42
Dear all

I created a cursor adopter and did setting through Builder after that
i opend cursor adaptor's code and i trying to change connectsring as a Variable
like

cSQlPath = "Provider=SQLOLEDB.1;";
+"Integrated Security=SSPI;";
+"Persist Security Info=False;";
+"Initial Catalog=ABC;";
+"Data Source=XYZ;";
+"Initial File Name="+"'"+\\Server\Data\data1.Mdf+"'"
loConnDataSource.ConnectionString = cSQlPath

everything is working fine except when trying to open the builder for the existing cursor
the system getting hanged.

but if i retype the existing code like this

[Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;U] + ;
[ser ID=administartor;Initial Catalog=ABC;Data Source=XYZ;]
its working fine

so, anybody help me how to set connectstring as variable.

with thanks and regards

Abdulla
Répondre
Fil
Voir

Click here to load this message in the networking platform