Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLConnect() not working from COM object
Message
De
29/08/2005 21:00:48
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
28/08/2005 21:08:34
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01044667
Message ID:
01044991
Vues:
19
Hello Alex, thanks for the reply.

>Not sure why it works in one mode and not the other but it could be you created a User DSN and the COM version does not run under your username but the system account.

I deleted the user dsn and recreated it as a system dsn. No change.

>Why not get rid of the DSN altogether and go DSNLess with SQLSTRINGCONNECT() instead?

Tried
SQLSTRINGCONNECT('Driver={SQL Server};Server=(local);Database=MyDatabase;')
SQLSTRINGCONNECT('Driver={SQL Server};Server=(local);Database=MyDatabase;Trusted_Connection=yes')

both of which returned a successful handle when called directly from VFP, but returned -1 when called via. a COM object from the ASP page.

I'm stumped! Any further ideas would be appreciated.

Regards,
Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform