Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server
Message
 
 
To
23/01/2004 16:01:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00870125
Message ID:
00870135
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform