Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Object not Connecting in ASP
Message
De
12/06/2003 08:32:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
COM Object not Connecting in ASP
Divers
Thread ID:
00799297
Message ID:
00799297
Vues:
55
Hi All,

I have created a COM DLL in VFP6. it connects to SQL Server 2000 thru the
following lines

nH = SQLCONNECT('dsnAccounts')
if nH = -1
return "Sorry could not connect"
endif

After compiling it and invoking it thru VFP or VB, it works perfectly. But
when I invoke it thru ASP, it does not connect to SQL server.

The connection handle returns -1 i.e. nH = -1

Why?

my ASP code is

set obj = server.createobject("cross.Accounts")
cRet = obj.myReport
response.write(cRet)

it never connects in ASP

Please help

TIA

Abdul Ahad Khan
Abdul Ahad Khan
CSi
www.csi-pk.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform