Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Доступ к базе Access / 3 сообщений из 3, страница 1 из 1
02.10.2003, 18:29
    #32282508
mxn
mxn
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Доступ к базе Access
Как открыть базу Access в VB используя ADO так что бы уже открытую базу никто другой не мог открыть ? Сюда надо еще что-то вписать ? :

cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBpath & _
";Mode=ReadWrite;Persist Security Info=False"
...
Рейтинг: 0 / 0
02.10.2003, 20:05
    #32282596
Piterskoy
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Доступ к базе Access
добавь:Mode должно быть ровно Share Deny Read|Share Deny Write
...
Рейтинг: 0 / 0
03.10.2003, 09:10
    #32282772
PA
PA
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Доступ к базе Access
ADO 2.7 API Reference

ConnectModeEnum
Specifies the available permissions for modifying data in a Connection, opening a Record, or specifying values for the Mode property of the Record and Stream objects.


Constant Value Description
adModeRead 1 Indicates read-only permissions.
adModeReadWrite 3 Indicates read/write permissions.
adModeRecursive 0x400000 Used in conjunction with the other *ShareDeny* values (adModeShareDenyNone, adModeShareDenyWrite, or adModeShareDenyRead) to propagate sharing restrictions to all sub-records of the current Record. It has no affect if the Record does not have any children. A run-time error is generated if it is used with adModeShareDenyNone only. However, it can be used with adModeShareDenyNone when combined with other values. For example, you can use "adModeRead Or adModeShareDenyNone Or adModeRecursive".
adModeShareDenyNone 16 Allows others to open a connection with any permissions. Neither read nor write access can be denied to others.
adModeShareDenyRead 4 Prevents others from opening a connection with read permissions.
adModeShareDenyWrite 8 Prevents others from opening a connection with write permissions.
adModeShareExclusive 12 Prevents others from opening a connection.
adModeUnknown 0 Default. Indicates that the permissions have not yet been set or cannot be determined.
adModeWrite 2 Indicates write-only permissions.
...
Рейтинг: 0 / 0
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Доступ к базе Access / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]