Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting Deleted Records using OLEDB Driver
Message
 
 
À
17/06/2004 19:09:43
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:
00914860
Vues:
14
This message has been marked as the solution to the initial question of the thread.
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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform