Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select * from MSDE table
Message
De
16/09/2003 09:23:16
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00829328
Message ID:
00829350
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform