Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Table with Memo field

$
0
0
Re: Table with Memo field
Web Connection 5.0
Re: Table with Memo field
11/06/2012
10:11:06 AM
3MZ0LTYFJShow this entire thread in new window
Gratar Image based on email address
From:
Tore Bleken
To:
Attachments:
None
The deleted() function can NOT be used reliably in a SQL statement!!! Instead you should use SET DELETED ON, which in my mind should be default and never be changed. Deleted records should be treated as such, namely as non existent. In SQL server deleted records are gone forever, as the name implies.


Dear friends,
I have Table1 with 2 fields (one of which is a Memo field) and Table2 with two character fields.
I do a simple query joining Table1 and Table2: the first time I run the query I get an empty cursor, while the second time I get the right cursor with results.

Select t1.Id, t1.Desc, t2.Name1, t2.Name2 ;from Table1 t1, Table2 t2 ; where t1.Id=t2.Id ; and not DELETED() ; into cursorQuery

I have found if I run the following before to run the query then I get the right cursor just the first time:

SELECT Table1
GO BOTTOM
GO TOP

Please, what is wrong?
Thank you very much


Viewing all articles
Browse latest Browse all 10393

Trending Articles