Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Deleted Records using OLEDB Driver
Message
 
 
To
17/06/2004 19:09:43
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00914858
Message ID:
00914860
Views:
15
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform