Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp Equvalent Statement to Sql Server Statement
Message
 
To
15/08/2005 09:21:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01040949
Message ID:
01040954
Views:
15
>Dear Experts,
>
>I want to execute SQL Server Code from Vfp form.
>
>The Vfp stament is 'Select 0000.00 as Cost, Qty from purchase into cursor cur1'.
>Can anybody help me how to write the same code as a Sql Server statement.
>
>i tried in this way
>Cast(Cost as Decimal(7,2), qty from purchase)
>
>But its giving error, pls help me
>
>Regards
>Abdulla
SELECT CAST(0 as Decimal(7,2)) AS Cost, Qty FROM purchase
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform