Avatar billede soenderup Nybegynder
31. juli 2001 - 13:53 Der er 2 kommentarer og
1 løsning

adCmdTable

Hvem gider hurtigt og præcist forklare mig hvad adCmdTable er, og hvad jeg skal bruge det til! Også gerne adCmdTableDirect, adCmdText, adCollectionRecord osv.

Jeg er med på at det placeres efter min cursertype som her:
ObjRS.Open sql, ObjConn, adOpenForwardOnly, adLockReadOnly, adCmdTable

/Sønderup
Avatar billede terry Ekspert
31. juli 2001 - 14:17 #1
I dont think this parameter is so important! This is taken form Access help and we are looking at the Options parameter...

Parameters

Source  Optional. A Variant that evaluates to a valid Command object, an SQL statement, a table name, a stored procedure call, a URL, or the name of a file or Stream object containing a persistently stored Recordset.

ActiveConnection  Optional. Either a Variant that evaluates to a valid Connection object variable name, or a String that contains ConnectionString parameters.

CursorType  Optional. A CursorTypeEnum value that determines the type of cursor that the provider should use when opening the Recordset. The default value is adOpenForwardOnly.

LockType  Optional. A LockTypeEnum value that determines what type of locking (concurrency) the provider should use when opening the Recordset. The default value is adLockReadOnly.

Options  Optional. A Long value that indicates how the provider should evaluate the Source argument if it represents something other than a Command object, or that the Recordset should be restored from a file where it was previously saved. Can be one or more CommandTypeEnum or ExecuteOptionEnum values.

CommandTypeEnum = 2 (adCmdTable)
Evaluates CommandText as a table name whose columns are all returned by an internally generated SQL query.


Avatar billede terry Ekspert
01. september 2001 - 14:37 #2
soenderup are you there?
Avatar billede soenderup Nybegynder
31. oktober 2001 - 10:04 #3
Jeg fandt svaret i MS-SQL books...

/sønderup
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester

IT-JOB

Rambøll Management Consulting

Senior Software Engineer

Capgemini Danmark A/S

AI Data Architect

Politiets Efterretningstjeneste

IT-løsningsarkitekt i PET

Paychex Europe

Scrum Master