Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server
Message
 
 
À
23/01/2004 16:01:20
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00870125
Message ID:
00870135
Vues:
17
Steve,

despite what John said...
lnConn = SQLSTRINGCONNECT( "driver={SQL Server};server=(local);trusted_connection=yes;" )
sqlexec( lnConn, "create database test" )
sqlexec( lnConn, "use test" )
sqlexec( lnConn, "create table test1 ( i1 int )" )
sqlexec( lnConn, "insert into test1 values ( 1 )" )
sqlexec( lnConn, "select * from test1" )
works fine and dandy for me. You do need to have sufficient rights on the server to create databases and tables though.

>How can I use VFP 6.0 to create a database and add tables to SQL Server?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform