Gene Wirchenko
2011-03-18 02:08:19 UTC
Dear Vixens and Reynards:
I am just starting to connect to SQL Server 2008 Express through
VFP, and I have some questions. URLs are welcome. There is a lot of
Web to sift through, and not everyone contributing is correct.
1) What exactly is a connection-level error? I have been able to
get this error with sqlexec() by connecting without specifying a
database and then trying to select, but what else does this mean?
2) What exactly is an environment-level error?
3) Suppose that I have more than one result set. (Say that I do two
queries at once.) Are the result set names guaranteed to come back in
the array in same order as the queries?
4) sqlexec() returns 0 if the command is still executing. When does
this happen, and what do I do about it when it does?
5) Because I am experimenting, I often have program crashes and have
connections left hanging. How can I close all of them in one command?
(I can loop with sqldisconnect(), but this is kludgy.)
6) Do you have any tips that seem indicated at this point?
Sincerely,
Gene Wirchenko
I am just starting to connect to SQL Server 2008 Express through
VFP, and I have some questions. URLs are welcome. There is a lot of
Web to sift through, and not everyone contributing is correct.
1) What exactly is a connection-level error? I have been able to
get this error with sqlexec() by connecting without specifying a
database and then trying to select, but what else does this mean?
2) What exactly is an environment-level error?
3) Suppose that I have more than one result set. (Say that I do two
queries at once.) Are the result set names guaranteed to come back in
the array in same order as the queries?
4) sqlexec() returns 0 if the command is still executing. When does
this happen, and what do I do about it when it does?
5) Because I am experimenting, I often have program crashes and have
connections left hanging. How can I close all of them in one command?
(I can loop with sqldisconnect(), but this is kludgy.)
6) Do you have any tips that seem indicated at this point?
Sincerely,
Gene Wirchenko