>But if i run the scrit from VFP, get this error, "...OLE DB Provider for SQL Server: Incorrect syntax near 'Create' ..., but if i run it in SQL Query Analyser it works without any error.
Do you have batch separater 'GO' in the script? The 'GO' is QA command not T-SQL.
--sb--