Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > MS Access > Recordset.Open


Автор: Тутанхамец 16.5.2006, 12:25
Здравствуйте, вопрос в следующем.

Осваиваю ADO. Читаю в инструкции про метод open объекта recordset. Значения параметра opions. Он задает, как нужно интерпретировать параметр source.

Цитата

Constant Description 

adCmdText 

Indicates that the provider should evaluate Source as a textual definition of a command. 

adCmdTable 

Indicates that ADO should generate an SQL query to return all rows from the table named in Source. 

adCmdTableDirect 

Indicates that the provider should return all rows from the table named in Source.  

adCmdStoredProc 

Indicates that the provider should evaluate Source as a stored procedure. 

adCmdUnknown 

Indicates that the type of command in the Source argument is not known. 

adCommandFile 

Indicates that the persisted (saved) Recordset should be restored from the file named in Source.  

adExecuteAsync 

Indicates that the Source should be executed asynchronously. 

adFetchAsync 
Indicates that after the initial quantity specified in the CacheSize property is fetched, any remaining rows should be fetched asynchronously.  



(там вообще-то таблица была, но не скопировалась)

Практически чем отличаются adCmdTable и adCmdTableDirect? Есть какие-то нюансы?

 

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)