Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select * from MSDE table
Message
From
16/09/2003 09:23:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00829328
Message ID:
00829350
Views:
20
This message has been marked as the solution to the initial question of the thread.
>I ve got a connection to my MSDE database using
>
>gnConnHandle = SQLCONNECT('myServer', 'me')
>
>
>I should be connected to a database called myDB and there should be a table called myTable. How do I select all records from that table into a cursor called myCursor?
>
>
>select * from myDB!myTable! into cursor myCursor
>
>
>doesn't seem to work.
>
>Thanks,
>Einar

Assuming connection succeeded (check value) :

SQLExec(gnConnHandle, "select * from myDB..myTable", "myCursor")

SQL server tables are in the form :
Database.Owner.Table
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