Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDB Driver Property Set?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00620625
Message ID:
00622955
Vues:
20
Wow, that took some digging. :) How can you tell what works and what doesn't from that list? For example, I tried
? oDBConn.Properties.Item("SET reprocess").Value
and got something

but
? oDBConn.Properties.Item("Row Insert Notification").Value
Gives the error "Member ITEM does not evaluate to an object".

What I want to do is do inserts as fast as possible with the driver, kind of like a bulk-load utility in VBScript. Do you have any hints on what properties should be set to do a "firehose write"? Right now I am creating a GetRows() array from MSSQL data, and rolling through it to create "Insert Into..." statements for VFP, and getting 8-9 seconds for 1500 rows. Not all that fast.

I am attaching to the driver like this:
Set oDBConn = CreateObject("ADODB.Connection")
With oCacheConn
.ConnectionString = "Provider=VFPOLEDB.1;Data Source=" & cCacheDir & cDestDB
.CursorLocation = 2	'	adUseServer
.Mode = 2   'adModeWrite
.Open
End With
>
>There's Properties collection of the connection object. The VFP OLE DB provider properties are listed in the help under 'Standard and Custom OLE DB Properties'. I believe that property name is proveded in the 'Description' column. For example,
? ocon.Properties.Item("SET NULL").Value
>ocon.Properties.Item("SET NULL").Value = .F.
>? ocon.Properties.Item("SET NULL").Value
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform