Open database access
Open database access
Описание
Открывает указанную базу данных в объекте Workspace и возвращает ссылку на объект Database, представляющий эту базу данных.
Параметры
базаДанных
Объектная переменная, представляющая открываемый объект Database.
рабочаяОбласть
Необязательный. Объектная переменная, представляющая существующий объект Workspace, который будет содержать базу данных. Если аргумент рабочаяОбласть не задан, метод OpenDatabase использует стандартную рабочую область.
имяБД
Выражение или переменная типа String, задающая имя существующего файла базы данных с ядром Microsoft Jet или имя источника данных ODBC. Дополнительные сведения о значениях данного аргумента см. в разделе справки для свойства Name.
параметры
Необязательный. Выражение или переменная типа Variant, задающая параметры базы данных.
Для рабочей области ядра Microsoft Jet:
- True — Открытие базы данных для монопольного доступа.
- False — (По умолчанию). Открытие базы данных для общего доступа.
Для рабочей области ODBCDirect:
- dbDriverNoPrompt — Диспетчер драйвера ODBC использует строку подключения, определяемую аргументами имяБД и подключение. Если этих данных недостаточно, возникает ошибка выполнения.
- dbDriverPrompt — Диспетчер драйвера ODBC открывает диалоговое окно ODBC Data Sources, в котором отображаются данные, определяемые аргументами имяБД и подключение. Строка подключения образуется из имени источника данных, которое пользователь выбирает в диалоговых окнах, или, если имя источника данных не задано пользователем, используется стандартный источник данных.
- dbDriverComplete — (По умолчанию). Если в аргументах подключение и имяБД заданы все необходимые для подключения сведения, диспетчер драйвера ODBC использует строку из аргумента подключение. В противном случае выполняются действия, аналогичные задаваемым константой dbDriverPrompt.
- dbDriverCompleteRequired — Выполняются действия, аналогичные задаваемым константой dbDriverComplete, с тем лишь исключением, что драйвер ODBC отключает вывод приглашений на ввод сведений, не являющихся необходимыми для подключения.
толькоЧтение
Необязательный. Значение типа Variant (подтип Boolean), имеющее значение True, если база данных открывается только для чтения, и значение False (по умолчанию) при открытии базы данных с доступом для чтения и записи.
подключение
Необязательный. Выражение или переменная типа Variant (подтип String), содержащая сведения о подключении, в том числе пароли.
Замечания
При открытии базы данных она автоматически добавляется в семейство Databases. Кроме того, в рабочей области ODBCDirect создается объект Connection, соответствующий новому объекту Database. Этот объект Connection добавляется в семейство Connections того же объекта Workspace.
При указании аргумента имяБД необходимо иметь в виду следующее:
1. Если задается имя базы данных, уже открытой для монопольного доступа другим пользователем, возникает ошибка.
2. Если аргумент не задает имя существующей базы данных или допустимого источника данных ODBC, возникает ошибка.
3. Если значением аргумента является пустая строка («»), а аргумент подключение имеет значение «ODBC;», открывается диалоговое окно со списком имен всех зарегистрированных источников данных ODBC, в котором пользователь может выбрать нужную базу данных. 4. При открытии базы данных в рабочей области ODBCDirect с указанием имени источника данных в аргументе подключение пользователь имеет возможность задать в аргументе имяБД произвольную строку, которая в дальнейшем может использоваться в программах для ссылки на базу данных. Значение аргумента подключение образую два компонента: тип базы данных, за которым после точки с запятой (;) следуют необязательные аргументы. Указание типа базы данных, например, «ODBC;» или «FoxPro 2.5;» является обязательным. Необязательные аргументы, следующие в произвольном порядке, также разделяются символом точки с запятой. Одним из параметров может быть пароль (если пароль определен). Например:
Вызов метода NewPassword для объекта Database, не являющегося базой данных ODBCDirect, позволяет изменить параметр пароля, который задается в виде «;pwd=. «. При указании строки источника необходимо определить аргументы параметры и толькоЧтение. Дополнительные сведения о синтаксисе см. в разделе справки для свойства Connect.
Для закрытия базы данных и удаления объекта Database из семейства Databases следует применить к этому объекту метод Close.
При подключении ядра Microsoft Jet к источнику данных ODBC пользователь имеет возможность повысить быстродействие приложения, открывая объект Database, подключенный к источнику данных ODBC, вместо присоединения отдельных объектов TableDef к конкретным таблицам в источнике данных ODBC.
Пример
Следующая программа использует метод OpenDatabase для открытия одной базы данных Microsoft Jet и двух баз данных ODBC, подключенных к ядру Microsoft Jet.
Open an existing database
This topic describes the different methods you can use to open existing Access databases. You can open databases from Windows Explorer or from within Access itself. You can open multiple databases at once, and you can also create desktop shortcuts that open database objects directly.
What do you want to do?
Open an Access database from Windows Explorer
In Windows Explorer, navigate to the drive or folder containing the Access database file you want to open and double-click the database.
Access starts and the database is opened.
Open a database from within Access
If Access is already running, use the following procedure to open a database. Note, the steps vary slightly depending upon your version of Access.
On the getting started page of Access, Click Open Other Files.
On the Open area of the Backstage view, click Browse.
Click a shortcut in the Open dialog box, or in the Look in box, click the drive or folder that contains the database that you want.
In the folder list, browse to the folder that contains the database.
When you find the database, do one of the following:
Double-click the database to open it in the default mode specified in the Access Options dialog box or the mode that was set by an administrative policy.
Click Open to open the database for shared access in a multi-user environment so that you and other users can read and write to the database.
Click the arrow next to the Open button and then click Open Read-Only to open the database for read-only access so that you can view but not edit it. Other users can still read and write to the database.
Click the arrow next to the Open button and then click Open Exclusive to open the database with exclusive access. When you have a database open with exclusive access, anyone else who tries to open the database receives a «file already in use» message.
Click the arrow next to the Open button and then click Open Exclusive Read-Only to open the database for read-only access. Other users can still open the database, but they are limited to read-only mode.
If you cannot find the database that you want to open
In the Open dialog box, click the This PC or My Computer shortcut on the left side (or in the Look in box, click My Computer).
In the list of drives, right-click the drive that you think might contain the database, and click Search.
Enter your search criteria and press ENTER to search for the database.
If the database is found, double-click it in the search dialog box to open it.
Since the search was initiated from the Open dialog box, you must click Cancel in that dialog box before the database will open.
Note: You can directly open a database file in an external file format, such as dBASE, Paradox, Microsoft Exchange, or Microsoft Excel. You can also directly open any ODBC data source, such as Microsoft SQL Server. Access automatically creates a new Access database in the same folder as the data file and adds links to each table in the external database.
To open one of the last several databases you had open, click the file name in the Recent list on the getting started page. Access opens the database with the same option settings it had the last time you opened it. If the list of recently used files is not displayed:
In the Access Options dialog box, click Client Settings or Advanced.
Under Display, type a number in the Show this number of Recent Databases box.
Open multiple databases at the same time
In a single instance of Access, you can have only one database open at a time. In other words, you cannot start Access, open one database, and then open another database without closing the first database. However, you can run multiple instances of Access at the same time, each with a database open in it. Each time you start Access, you open a new instance of it. For example, to have two Access databases open at the same time, start Access and open the first Access database, and then start a new instance of Access and open the second database.
Note: The number of instances of Access that you can run at the same time is limited by how much memory is available. Available memory depends on how much RAM your computer has and how much memory is being used by the other programs running at the time.
Each instance of Access runs in a separate window. If you have more than one instance of Access running and you want to view them simultaneously, you can tile the windows.
Create a desktop shortcut to open a database object
You can create a desktop shortcut to open an Access database object (for example, a form or report). The database may be stored locally on your computer, remotely on a network file server, or in a shared directory.
Open the database containing the object for which you want to create a shortcut.
Resize the Access window and minimize any other open windows so that you can see the desktop behind the Access window.
In the Navigation Pane, find the object for which you want to create the shortcut.
Drag the object from the Navigation Pane to the desktop. When you release the mouse button, the shortcut is created on the desktop.
If you want the shortcut in a location other than the desktop, use Windows Explorer to move the shortcut to the location you want.
When you double-click the shortcut, Access opens the database in which the object is stored and displays the object. If Access is already running and the object associated with the shortcut is in a database other than the currently open database, a new instance of Access is started. To open the object in a specific view in Access, right-click the shortcut and then click the view you want.
If you move the database after you create the shortcut, delete the shortcut and create a new one.
To delete a shortcut, click it and then press the DELETE key. Deleting the shortcut does not delete the object that the shortcut opens.
Всё о базе данных Directory of Open Access Journals (DOAJ)
Directory of Open Access Journals – наиболее известный и популярный международный поисковый сервис, предоставляющий открытый доступ к размещенным научным материалам и индексирующий не только наименования журналов, но и издаваемые научные статьи.
Чтобы успешно зарегистрироваться в Directory of Open Access Journals, необходимо:
- Предоставить открытый доступ к информации и лицензировать научный журнал согласно требованиям базы данных;
- Пройти регистрацию на официальном сайте Directory of Open Access Journals и заполнить анкету.
После вынесения комиссией Directory of Open Access Journals решения о том, соответствует ли научный журнал предъявляемым требованиям качества и открытости, издание будет внесено в общий список и начнет индексироваться в системе. Затем от автора будет требоваться только регулярное предоставление метаданных – сведений о сборниках и научных работах.
Требования, предъявляемые системой Directory of Open Access Journals к журналам, включают в себя следующие пункты:
- Открытый бесплатный доступ к полнотекстовой версии научной статьи;
- Ссылка, предоставляемая в базу данных Directory of Open Access Journals на журнал, должна вести на его главную страницу;
- Информация, расположенная на страницах журнала, должна быть доступна локально. Проще говоря, она должна находиться только на данном сайте, а не на других ресурсах в интернете, при этом должна легко находиться и быть связана с главной страницей научного издания;
- На одном сайте должны располагаться все данные, связанные с научным журналом, в том числе и его архивы;
- В обязательном порядке у журнала должен иметься хотя бы один зарегистрированный идентификатор ISSN;
- Главная страница электронного журнала должна быть интуитивно понятной и простой в навигации. На ней должны содержаться видимые ссылки на остальные страницы издания. Также она должна демонстрировать тот факт, что редакция журнала предприняла все меры для соблюдения профессиональных и этических стандартов. На главной странице должны содержаться ссылки на текущий выпуск журнала и на архив предыдущих выпусков, редколлегию, форму поиска, контактную информацию и страницу о журнале;
- В обязательном порядке на страницах должна содержаться информация о редколлегии журнала и именах членов редакционной коллегии. Вся размещенная на них информация должна быть актуальной;
- Перед публикацией научные статьи должны проверяться и проходить контроль качества, который отображается на одной из страниц;
- Ссылка на «руководство для авторов» должна иметься на главной странице и быть четко заметной;
- В обязательном порядке у журнала должна иметься страница, на которой описаны все возможные траты авторов для публикации работы в издании;
- Должна быть указана политика журнала с информацией о том, что к полнотекстовым версиям статей предоставляется полный и открытый доступ.
Форма регистрации на сайте Directory of Open Access Journals содержит 58 пунктов, которые должны быть полностью заполнены. Подробная инструкция по ее заполнению находится на сайте базы данных.
OpenOffice Base — модуль для работы с базами данных
Apache OpenOffice.org Base – это многофункциональное приложения, основной задачей которого является управление базами данных. Через эту утилиту можно создавать и контролировать информационные базы одиночных продуктов, которые находятся в приватном пользовании, или ежемесячно формировать коммерческие отчеты по отделам продаж.
Опен Офис Бейс позволяет формировать базы данных с использованием разных форм, отчетов и таблиц либо применять заготовленные шаблоны. Скачать OpenOffice Base для домашнего пользования можно абсолютно бесплатно.
Версия Опен Офис Бейс 3.0 и старше поддерживает формат одной из самых популярных баз данных MS Access. OpenOffice Base является кроссплатформенным приложением, поэтому его можно скачать бесплатно и установить на компьютеры, работающие на операционках Windows 8, 8 64-bit, 7, 7 64-bit, Vista, Vista 64-bit, XP, XP 64-bit.
Утилиту невозможно скачать отдельно, для ее использования изначально нужно скачать русскую версию пакетного продукта OpenOffice, сделать это можно абсолютно бесплатно, а затем при установке отметить конкретно требуемое приложение Опен Офис Бейс.
Функции OpenOffice Base
Если вы решили скачать и установить на свое компьютерное устройство русскую версию OpenOffice Base, предварительно следует познакомиться с функциональными возможностями приложения:
- OpenOffice Base совмещается с базами данных HSQLDB, MS Access, MySQL, PostgreSQL, Оракл;
- в Опен Офис Base можно работать со справочниками адресов и телефонов, а также редактировать текстовые документы;
- есть возможность редактирования отчетов, форм и таблиц баз данных;
- Опен Офис Бейс совместим с остальными приложениями программного пакета OpenOffice, например, мастер отчетов может отобразить нужный отчет в редакторе OpenOffice Writer, где его можно отредактировать вручную.
Популярность этому программному продукту принесла его совместимость с HSQL, но приложение OpenOffice Base не лишено недостатков, его не могут одновременно использовать несколько пользователей. Для тех же, кто планирует работать в одиночку с небольшими базами данных, Опен Офис Бейс является оптимальным вариантов, кроме того, скачать русскую версию утилиты можно абсолютно бесплатно.
Внешний вид Опен Офис Base
После запуска Опен Офис Base перед юзером появляется мастер по открытию готовых и созданию новых баз данных. В верхней части окна будет располагаться основное меню с вкладками Файл, Папка, Вид, Вставка, Сервис, Окно, Справка, ниже расположена панель инструментов, с кнопками для наиболее используемых функций. Переключаться от записи к записи можно с помощью кнопок, которые находятся слева внизу, там же располагается информация о количестве и активности записей в открытом объекте.
Визуально OpenOffice Base очень напоминает MS Access, но русская версия софта значительно превосходит этот конкурирующий продукт по эргономике.
Скачать OpenOffice Base
Чтобы воспользоваться всеми преимуществами редактора баз данных, необходимо скачать OpenOffice Base бесплатно на русском языке и инсталлировать на свое компьютерное устройство. Это очень простая и удобная утилита, которая позволит создавать информационные базы с различными формами и отчетами.
7 Ways To Open An MDB File Without Microsoft Access
Freeware, no Microsoft Access needed
So, you’re here because you’re trying to open a file with an “.MDB” file extension, but don’t have a copy of Microsoft Access to reveal its mysteries. Just what is this file format and, for that matter, what’s Microsoft Access?
The first question is related to the second, but let’s start with the MDB file itself. The extension is short for Microsoft DataBase and is the format that Microsoft Access used up to 2003. The new format, which has long ago replaced MDB, is called ACCDB. If you have an MDB file, it’s probably from a legacy source.
As for Access, it’s the database component of the Microsoft productivity suite, which also includes applications such as Word and Excel. Let’s look at some ways you can open an mdb file without Access.
Consider Buying Access
Yes, this article is meant to tell you how to open an MDB file without Access. However, the reason many people still ask this question stems from a time when Access was a premium product not included with the standard Microsoft Office package.
Things have changed drastically since those days. People no longer buy discrete versions of Office, but subscribe to the Office 365 service. Even the cheapest tier of the service includes the desktop version of Access.
It costs less than ten bucks for a single month of service and you can get a one-month free trial with a new Microsoft account. So before you start your journey down the road of Access-free ways to open MDB files, consider taking this obvious shortcut.
Import It With Excel
If you have access to a computer that has Microsoft Excel, but doesn’t have Access, you can open an MDB file and view its contents in a spreadsheet.
This doesn’t give you access to the file in its native database format, but at least you can see all the data contained within it and even export it as a spreadsheet or comma-separated text file. If that’s all you need, this is a quick and easy way to see what’s inside that MDB file.
Use An Open Source Alternative To Access
Microsoft Office isn’t the only game in town when it comes to productivity suites. There are plenty of free and Open Source alternatives to the industry-standard Microsoft package.
LibreOffice is a good place to start. It comes with an application called “Base” and this can connect to Microsoft Database files. It’s limited in various ways. Specifically, forms and queries don’t work. However you can still view the tables with their data using Base.
Use An Online MDB Opening Service
If you don’t want to install anything in order to open an MDB file, then you can use an online viewer running in a browser. This is particularly useful when you want to use a public computer or one where you don’t have administrator privileges, and therefore can’t install anything.
One such viewer we tested with success is MDB Opener. As the name suggests, you can upload or link to a MDB file and then open it on the web page. You cannot edit the file in any way, but you can export it to CSV or Excel format and download it to the local drive.
If your MDB file contains sensitive information, such as medical records, think twice about uploading it to an online service. You may be exposing that information to an unsecure service, which could even be illegal, depending on the type of information.
Use a Third-Party MDB Viewer
Since there are plenty of people who need to open MDB files without a copy of Access around, there are also quite a few third-party MDB viewer applications to choose from. MDB Viewer Plus stands out from the pack for a number of reasons.
First of all, it’s completely free. Secondly, you can edit MDB files and ACCDB files. Even better, the application is portable, which means you don’t have to install it. However, this is a Windows-only application that does rely on several database-specific components built into Microsoft’s operating system.
Use a Text Editor
The humble text editor, such as Windows Notepad, can also be used to open MDB files under certain circumstances. While we didn’t have any luck ourselves, some MDB files only have plain text content. This means that a text editor will show you something.
With the MDB files we opened with Notepad, the majority of the content was a garbled mess. However, the snippets of plain text contained within did provide clues as to what sort of database the file contained. It’s not a recommended method, but if nothing else works, it can’t hurt.
Convert It With (Someone Else’s) Access
Cheekily, we’re going to suggest using Access again in an article about not using Access. Specifically, it’s worth asking someone who does have Access to convert the file into a different format for you.
If someone sent you the MDB file via email, for example, you could ask them to resend it as a spreadsheet after converting it with their copy of the application. Given how popular Office 365 is these days, there’s bound to be someone within shouting distance who has Access installed on their computer, so it’s worth a shot at least.
It’s All About That (Data) Base
Access is no longer hidden behind a premium paywall in the way it used to be, but there are still plenty of people who don’t have access (no pun intended) to the software. Hopefully one of the alternative solutions above will work for you and get you into that ancient database of wonders that’s been previously locked away from prying eyes.
Sydney Butler is a social scientist and technology fanatic who tries to understand how people and technology coexist. He has two decades of experience as a freelance computer technician and more than a decade as a technologies researcher and instructor. Sydney has been a professional technology writer for more than five years and covers topics such as VR, Gaming, Cyber security and Transhumanism. Read Sydney’s Full Bio