Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with VFP parameter in tableadapter/dataset
Message
From
18/10/2006 18:35:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/10/2006 18:32:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
01163072
Message ID:
01163139
Views:
9
>>Greetings,
>>
>>I'm trying to create a business object layer that is going to talk to my VFP tables through OLEDB. Everything went fine creating a 'fillAll' method that pulls all records. However now that I'm trying to do a parameterized select I've run into problems. The SQL statement is simple enough:
>>
>>
>>SELECT * from User where userid = @userid
>>
>>
>>I get back, "Error in Where clause near '@'. Unable to parse query text.
>>
>>Is there a different syntax I will need to use in order to create parameters for my query.
>>
>>Thanks in advance!
>>
>>Greg
>
>
>SELECT * from User where userid = ?
>
>You should then add add a parameter to parameters collecion. There you can use parameter name if you want (but VFP doesn't use that name - it cares about its positon).
>Cetin

For a sample check:
Re: C# 2005 updating VFP data Thread #1160448 Message #1160494
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform