Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with SQLEXEC
Message
From
23/03/2005 03:58:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00998336
Message ID:
00998348
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform