Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling SQLRemoveDriver does not update the lpdwUsageCount on linux #5

Open
ameybarve15 opened this issue Sep 20, 2013 · 0 comments
Open
Assignees

Comments

@ameybarve15
Copy link

SQLRemoveDriver returns true, also I checked entry into odbcinst.ini and driver entry is also removed.
Here's my code : It prints Usage count is 1.

DWORD nUsageCount;
BOOL bRemoveDSNs = false;
if (!SQLRemoveDriver("ODBCDRIVERNAME",bRemoveDSNs ,&nUsageCount)) {
printf("Error \n");
}
else {
printf( "Usage count is %d.\n", (int)nUsageCount );
}

I also observed that SQLInstallDriverEx does not increment nUsageCount past 1, irrespective of how many times you call SQLInstallDriverEx. Why is that So?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants