Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLConnect() not working from COM object
Message
De
29/08/2005 22:08:53
 
 
À
29/08/2005 21:00:48
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
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:
01045004
Vues:
27
>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



I see my next suggestion, after learning you use ASP is what Sergey already told, as ASP does not run under your name but an IUSR_ account.
Not sure what to try next after his suggestion.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform