Hi,
Got a few VFP/SQL usage questions that I need clarity on...
1. Who are explicitly shared sql connections going to the same database shared with?
a. all users connected to the database, whether local or remote,
b. all connections coming from multiple vfp apps on a single workstation,
c. all connections created by a specific user on a specific workstation running a single vfp app uses,
d. all connections only ????
2. What are the boundaries of when a connection is shared or not.
3. Am I safe to assume a connection is shared ONLY if the sqlsetprop(nConnection, 'Shared') was issued? What is the default for shared setting as the docs fails to say?
4. What is the difference in using a DSNLess connection via an ODBC driver or directly thru "SQL Server" of SQL Server Native Clients". I've always thought they were the same, however I've seen docs that suggests otherwise, hence the question.
5. What is the fastest (least expensive in sql time and sql resources) in vfp9 to use for testing if the sql connection is alive? I would like to find out without tripping to the server which would be the fastest with zero cost to the server...
a. is there a way to find out without trying to make a trip to the server?
b. if a trip has to be made, do something like
c. wrap the needed query in a try-catch block and deal with it there?
Thanks,
Stanley
Got a few VFP/SQL usage questions that I need clarity on...
1. Who are explicitly shared sql connections going to the same database shared with?
a. all users connected to the database, whether local or remote,
b. all connections coming from multiple vfp apps on a single workstation,
c. all connections created by a specific user on a specific workstation running a single vfp app uses,
d. all connections only ????
2. What are the boundaries of when a connection is shared or not.
3. Am I safe to assume a connection is shared ONLY if the sqlsetprop(nConnection, 'Shared') was issued? What is the default for shared setting as the docs fails to say?
4. What is the difference in using a DSNLess connection via an ODBC driver or directly thru "SQL Server" of SQL Server Native Clients". I've always thought they were the same, however I've seen docs that suggests otherwise, hence the question.
5. What is the fastest (least expensive in sql time and sql resources) in vfp9 to use for testing if the sql connection is alive? I would like to find out without tripping to the server which would be the fastest with zero cost to the server...
a. is there a way to find out without trying to make a trip to the server?
b. if a trip has to be made, do something like
Code:
select pk from [database].{dbo}.[SingleRowTable] option(fast 1)
Thanks,
Stanley