Environment versions
Network:
Windows 2003 Server
>Hi all
>
>How can I execute a bunch of SQL statements in a SQL scrupt file from within VFP using SQLEXEC or some other way?
>
>Your advice much appreciated.
>
>Thanks & Best Regards
EXEC. If the script file is a stored procedure, the command you pass to SQL Server from VFP is:
SQLEXEC (lnConn, 'EXEC sp_SomeStoredProcedure ' )
Include parameters in parentheses at the end of the passed string if the SP expects any. You must have obtained connection handle lnConn previously, as in any other SQLEXEC command.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only