Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute sql script from Vfp

Status
Not open for further replies.

dotnik

Programmer
Nov 14, 2003
24
IT
Good morning,
Can I execute a file script generate from Sql Server 2000 with all istruction necessary for create database, create table, index and rules during the setup of my application?
I've creating an application that will be setup on my customer with MSDE.
I should be to create a setup program that read from sql script file and execute with SQLEXEC(..) sql command.
Best regard, and good year to all.

Nicola
Ferrandina (MT) - Italy
 
Code:
SQLEXEC(connHandle,[EXEC ]+FILETOSTR("MySqlScript.SQL"))

Just be sure you didn't have any
GO commands in the script file.

Borislav Borissov
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top