|
|
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
Для MSSQL не пашет, чтоли? Я придумал идеологические оправдания, но все равно странно. И в документации не написано, что не пашет (я не нашел) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 07:43:01 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
И какие же это идеологические оправдания? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 08:02:14 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
И какие же это идеологические оправдания? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 08:02:17 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
>И какие же это идеологические оправдания? Наверно MS считает, что неправильно создавать курсор размером с таблицу, мешать другим пользователям и пр. Вообще- то, у меня стоит задача совместной обработки MDB и SQL(из VBA). Я сначала хотел бегать по Recordset ам, но если нет Seek, закачаю MDB во временные таблицы и сделаю все SQL-ем. Так правильно? Может, есть другие варианты? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 08:23:00 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
А курсор рекордсета на какой стороне? Клиента или сервера? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 09:08:47 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
>А курсор рекордсета на какой стороне? Клиента или сервера? Seek Method Searches the index of a Recordset to quickly locate the row that matches the specified values, and changes the current row position to that row. Syntax recordset.Seek KeyValues, SeekOption Parameters KeyValues An array of Variant values. An index consists of one or more columns and the array contains a value to compare against each corresponding column. SeekOption A SeekEnum value that specifies the type of comparison to be made between the columns of the index and the corresponding KeyValues. Remarks Use the Seek method in conjunction with the Index property if the underlying provider supports indexes on the Recordset object. Use the Supports(adSeek) method to determine whether the underlying provider supports Seek, and the Supports(adIndex) method to determine whether the provider supports indexes. (For example, the OLE DB Provider for Microsoft Jet supports Seek and Index.) If Seek does not find the desired row, no error occurs, and the row is positioned at the end of the Recordset. Set the Index property to the desired index before executing this method. This method is supported only with server-side cursors . Seek is not supported when the Recordset object's CursorLocation property value is adUseClient. This method can only be used when the Recordset object has been opened with a CommandTypeEnum value of adCmdTableDirect. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 09:14:00 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
Ну, дык вот, ты сам и нашел ответ на свой вопрос в первом посте. Курсор должен быть на сервере; методом Supports с соответствующим параметром можешь определить поддерживает рекордсет индексацию, а за ней и сам Seek. ;о) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 09:30:08 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
Я не кретин. Я прочитал документацию. Я пробовал. Не пашет. AdoDB.Recordset.Supports(adSeek)=False ADODB.Recordset.Supports(adIndex)=False ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 09:35:15 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
наверное используемый для конекшена провайдер не поддерживает index & seek. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 12:08:05 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
Use the Seek method in conjunction with the Index property if the underlying provider supports indexes on the Recordset object. Use the Supports(adSeek) method to determine whether the underlying provider supports Seek, and the Supports(adIndex) method to determine whether the provider supports indexes. (For example, the OLE DB Provider for Microsoft Jet supports Seek and Index.) что - то мне подсказывает что Microsoft OLE DB Provider for Microsoft Jet единственный провайдер поддерживающий seek. может все - таки find спасет положение? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 13:17:15 |
|
||
|
AdoDb.Recordset.Seek
|
|||
|---|---|---|---|
|
#18+
T.e. MS SQL Seek не поддерживает, о чем я и написал. Трагедии нет, и способ решения своей проблемы я описал выше. Я просто хотел убедиться, что это правда, что не поддерживает MS SQL Seek, а не я чего то напутал. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2002, 13:23:01 |
|
||
|
|

start [/forum/topic.php?fid=46&fpage=3364&tid=1818292]: |
0ms |
get settings: |
7ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
29ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 212ms |
| total: | 310ms |

| 0 / 0 |
