Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL: Internal error.
Message
 
To
21/05/2001 20:11:09
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:
00509312
Message ID:
00509732
Views:
22
Hey, I did test it before I sent it to you <g>

Cheers,

Andrew

>Hi Guys,
>
> Thanks for your help. I tried using the LIKE operator and the Query runs through without an error. Now to see if it's selected the correct data <s>.
>
>Regards,
>Gavin...
>
>>Hi Gavin,
>>
>>Use the LIKE operator and some wildcards:
>>
>>
SELECT * ;
>>    FROM loadfile, client ;
>>    WHERE NOT EMPTY(loadfile.searchstr1) ;
>>    AND ALLTRIM(UPPER(client.company))LIKE "%" + UPPER(ALLTRIM(loadfile.searchstr1)) + "%"
>>
>>Cheers,
>>
>>Andrew
>>
>>>Hi All,
>>>
>>>I'm getting an error 'SQL: Internal error.' when issuing the following SQL Statement:
>>>
>>>
>>>SELECT * ;
>>>    FROM loadfile, client ;
>>>    WHERE NOT EMPTY(loadfile.searchstr1) ;
>>>    AND UPPER(ALLTRIM(loadfile.searchstr1)) $ ALLTRIM(UPPER(client.company))
>>>
>>>
>>>Loadfile is a VFP6.0 table and client is a FPW2.6 Table. Searchstr1 and Company Fields are both defined as C(55).
>>>
>>>The online help states the following:
>>>
>>>
>>>SQL: Internal error (Error 1800)
>>>An internal error has occurred.
>>>
>>>Record your recent actions while using Visual FoxPro and then call Microsoft
>>>Support.
>>>
>>>
>>>The Technical Writers must have been up all night thinking about this one !!!
>>>
>>>What I'm trying to achieve is to find a group of clients using a partial match on Company Name, E.g. if Searchstr1 contained 'Bunbury' then I want to find all occurences in the Client table that contain 'Bunbury' somewhere in the Company Name Field.
>>>
>>>Any Ideas as to what the problem might be?
>>>
>>>Thanks,
>>>Gavin...


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform