Of course, you should use SQLExec. However, you should NOT use VFP commands for this. In other words
SQLExec("CREATE DATABASE ..."
will not work.
SQL Server have its own language and commands, stored procedures. You should use them to create databases and tables on SQL Server programmatically. Better find some good book on SQL Server commands.
[sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
I Know How create a database, tables from the query analyzer and save them in a script file an run it in a batch.
But what I meant, was how using just VFP if it’s possible create a database, I guess it is because the VFP has a wizard that upload the fox database on SQL-server, but how I could do the same for my owns installations.
FWIW, if you are using VFP6, the source code for MOST of the builders and wizards are included in a file named XSource.zip. I believe the Upsizing wizard is among the included, if you want to attempt to decifer it. [sig]<p>Jon Hawkins<br><a href=mailto: jonscott8@yahoo.com> jonscott8@yahoo.com</a><br><a href= > </a><br>Focus on the solution....Not the problem.[/sig]
I had tried with SQLconnect()+SQLexe() before and didn’t create the database, but with SQLstringconnect it does
Even I don’t need have a database in VFP to get the connection.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.