Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Deleted Records using OLEDB Driver
Message
From
17/06/2004 19:26:24
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:
00914861
Views:
13
Hi Sergey,

I wasn't sure how to pass the SET DELETED OFF to the driver.

Thanks,
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform