Hi Kurt,
nice to see the colours of our flags mixed up ;-)
>Sending the script is no prob but i can't find out how i can run this scrip automatically.
You can send the script to SQL Server using VFP's ODBC Pass Through capabilities. Load the script into a memory variable and pass it SQLEXEC as the command.
>Can somebody help me out ? or is there a better alternative ?
You could export the dbf to a text file and import it into SQL Server using the BCP untility that comes with SQL-Server. BCP import some thousand records in a second. See SQL Server Online Books for more details and examples.
Armin