-
Notifications
You must be signed in to change notification settings - Fork 41
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
Bug: Exporting Linked Databases Causes Error 91 #546
Comments
I should add: The log does not display the issue (it's told not to, so that makes sense). The |
Huh: here's an interesting tidbit, and one that should be handled in this addin. I forgot that the connection string used for your tables (connected via OBDC) cannot be used (without parsing) by ADODB. You need to set a few extra bits. I don't know how I didn't realize this at first, because I bashed my head against the wall a few months ago on our database for literally the same issue. We also have to test our db connections (in some cases...they don't connect on the first try anyway). OOH: and another bit, maybe to why the |
Ok, source of the issue is that the connection string did not work, but the class also did not correctly detect that it wasn't connecting. When I don't know if we want to be in the business of parsing ODBC strings and converting them to ADO ingestible connection strings, but we definitely need to capture the connection error(s) and bail out if it doesn't work before just running into a crash. |
One way to handle this is to initialize Another is we should consider caching the |
I'll put together a PR for this, I think I have a pretty good handle on most of this. |
Another find: |
…ses and avoid inadvertent mishaps if adding functions joyfullservice#546
While attempting to use the External Database Connection export tool, I get error 91 and cannot continue.
It appears
ScanDatabaseObjects
is not initializingm_AllItems
orm_ModifiedItems
. In turn, itDigging into
ScanDatabaseObjects
, it appearsconn
isn't connecting at all.When I dig into
GetNewOpenConnection
, it appears there's an error (-2147467259,"[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified", "Microsoft OLE DB Provider for ODBC Drivers") which is cleared by theCatchAny
statement.This leads to the connection being eliminated and error 91 later.
The text was updated successfully, but these errors were encountered: