I want to get the count of no. of connections currently open with an ms-access database.
For example two applications are working with the same database. Then how can I get this count? Is there is ms-access function or any facility in pypyodbc?
Using adodbapi, how can I get no. of open connections with a database??
I tried the following code.
#importing adodbapi
import adodbapi # success
#connection to database using the DSN 'test'
myConn = adodbapi.connect('test') # success
#get no. of open connection using openschema
myConn.connector.OpenSchema(-1, None,"{947bb102-5d43-11d1-bdbf-00c04fb92675}") #fail
It gives the following error.
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, u'ADODB.Connection', u'Object or provider is not capable of
performing requested operation.', u'C:\WINDOWS\HELP\ADO270.CHM',
1240648, -2146825037), None)
Can anybody provide solution?