Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract Records From Oracle
Message
From
31/07/2006 20:24:46
 
 
To
31/07/2006 19:52:52
Ed Hizon
Skswood Sdn. Bhd
Kuala Belait, Brunei
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01141979
Message ID:
01141981
Views:
14
you can look in VIEWS or you can use SQL/PS
For the last you can do something like this:
*** DSNLESS Conn
lcHandle=SQLSTRINGCONNECT("Driver={Microsoft ODBC for Oracle};Server=MyDatabase;Uid=IsMe;Pwd=123;")

 ?lcHandle && if -1 then it did not connect

 *** build your sql 
 lcSQL="SELECT one, two,three" +;
	"four,five,six"+ ;
	" FROM Table1"

*** exc the command
	= SQLEXEC(lnhandle, lcSQL+" WHERE one =?whavervevalue","ToCursor")
that's it. You now will have the cursor to create your report.
If you want to "Edit"
then you edit your cursor and send the UPDATE to Oracle the same way.


>Dear all,
>
>Can you please advise me on how I could be able to extract/edit records from an Oracle table. Is it possible to make a report form that could take records from an Oracle table.
>
>Appreciate your assistance.
>
>Thanks.
>
>Ed
Previous
Reply
Map
View

Click here to load this message in the networking platform