Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SQLEXEC
Message
De
23/03/2005 03:58:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00998336
Message ID:
00998348
Vues:
21
Hi Borislav

Thank you for your advice

I think i had found the solution.
---------------------------------------------------------------
* Original Code

qhandle = SQLSTRINGCONNECT(;
'driver=SQL server;' + ;
'Server=(local);' +;
'database=master;' + ;
'uid=SA;' + ;
'pwd=SA;' + ;
'trusted_connection=YES')

IF SQLEXEC(qhandle,'SELECT * From SysDatabase','Qmaster') < 0
.....
ENDIF

---------------------------------------------------------------
* After ( Work Fine )

=SQLEXEC(qhandle,'USE MASTER')
IF SQLEXEC(qhandle,'SELECT * FROM SysDatabase','QMASTER') < 0
....
ENDIF


I didn't put coding "=SQLEXEC(qhandle,'USE MASTER')" before next SQLEXEC execution.

But some of machine are working fine. Don't know why.


Thank you and have good day.

Regards
Nicholas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform