Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting Deleted Records using OLEDB Driver
Message
De
17/06/2004 20:10:08
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
17/06/2004 19:42:40
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00914858
Message ID:
00914869
Vues:
10
It's ok. I've figured it out.

>Hi Sergey,
>
>I don't suppose you'd know how to select deleted records from a FoxPro DBF in VB.NET?
>
>Regards,
>Gavin.
>
>>Gavin,
>>
>>You can use SET DELETE OFF command. For example,
lcConStr = "Provider=vfpoledb;Data Source="+HOME(2)+"northwind\northwind.dbc"
>>oCon = CreateObject("ADODB.connection")
>>oCmd = CreateObject("ADODB.Command")
>>oRs  = CreateObject("ADODB.RecordSet")
>>oCon.Open(lcConStr)
>>oCmd.ActiveConnection = oCon
>>oRs.ActiveConnection = oCon
>>oCmd.CommandText = [SET DELETE OFF]
>>oCmd.Execute()
>>oCmd.CommandText = [ SELECT  SET("DELETED"), * FROM orders]
>>oRs.Source = oCmd
>>
>>>Hi All,
>>>
>>>How do you select deleted records using the OLEDB Driver. I've done a:
>>>
>>>
>>>SELECT * ;
>>>    FROM mytable ;
>>>    WHERE DELETED()
>>>
>>>
>>>but I get no records returned even though there are deleted records in the table.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform