cardinal_pythonlib.register_db_with_odbc
Original code copyright (C) 2009-2022 Rudolf Cardinal (rudolf@pobox.com).
This file is part of cardinal_pythonlib.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Creates/registers an Access database via ODBC.
See
https://support.microsoft.com/kb/126606/EN-US
CREATE_DBV2=<path name> <sort order> (to create version 2 Jet engine mdb file, Access 2, 16bit) CREATE_DBV3=<path name> <sort order> (to create version 3 Jet engine mdb file, Access 95, Access 97) CREATE_DBV4=<path name> <sort order> (to create version 4 Jet engine mdb file, Access 2000)
https://code.activestate.com/recipes/414879-create-an-odbc-data-source/
view-source:https://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_22020226.html
this instead suggests CREATE_DBV3 for Access 95, CREATE_DBV4 for Access 97, and CREATE_DB for Access 2000, but that’s probably wrong
http://vieka.com/esqldoc/esqlref/htm/odbcsqlconfigdatasource.htm
https://msdn.microsoft.com/en-us/library/aa140021(v=office.10).aspx
… indicates that programmatic creation of queries/views (via ADO) leads to “invisible” queries
https://msaccessmemento.hubpages.com/hub/Stored_Procedure_in_MS_Access
… additionally, stored procedures have no user interface
- cardinal_pythonlib.register_db_with_odbc.create_and_register_access2000_db(filename: str, dsn: str, description: str) bool [source]
(Windows only.) Creates a Microsoft Access 2000 database and registers it with ODBC.
- cardinal_pythonlib.register_db_with_odbc.create_and_register_access97_db(filename: str, dsn: str, description: str) bool [source]
(Windows only.) Creates a Microsoft Access 97 database and registers it with ODBC.
- cardinal_pythonlib.register_db_with_odbc.create_and_register_access_db(filename: str, dsn: str, description: str) bool [source]
(Windows only.) Creates a Microsoft Access database and registers it with ODBC.
- cardinal_pythonlib.register_db_with_odbc.create_sys_dsn(driver: str, **kw) bool [source]
(Windows only.) Create a system ODBC data source name (DSN).
- cardinal_pythonlib.register_db_with_odbc.create_user_dsn(driver: str, **kw) bool [source]
(Windows only.) Create a user ODBC data source name (DSN).