Problem running SQL files on SQL Server
Posted: Mon Jan 28, 2008 7:16 am
Hi
I'm evaluating the latest version (7.5 sp2) and I can't get sql script files to run. When I load the script file it works just fine.
I've included the following line as script:
#FILESCRIPT#$SQLFILE$
When I set SQLFILE to $SUPPORTDIR$test.sql the file
ends up in folder:
C:\\Documents and Settings\\Administrator.VENUS.000\\Local Settings\\Temp\\1\\mia1
but the SQLFILE variable is converted to short file name so I'm not sure it's the same directory.
I've tried setting SQLFILE to another location, c:\\test.sql
The SQLFILE variable has a correct value when I display it in a message but nothing happens. The return variable is not set to ERROR either.
The file test.sql is in ANSI format.
When I load the script instead the variable returns SUCCESS.
I'm trying to run the scripts on Windows 2003 Server with SQL Server 2000.
I'm running out of ideas to try. Please help.
Regards,
Tony
I'm evaluating the latest version (7.5 sp2) and I can't get sql script files to run. When I load the script file it works just fine.
I've included the following line as script:
#FILESCRIPT#$SQLFILE$
When I set SQLFILE to $SUPPORTDIR$test.sql the file
ends up in folder:
C:\\Documents and Settings\\Administrator.VENUS.000\\Local Settings\\Temp\\1\\mia1
but the SQLFILE variable is converted to short file name so I'm not sure it's the same directory.
I've tried setting SQLFILE to another location, c:\\test.sql
The SQLFILE variable has a correct value when I display it in a message but nothing happens. The return variable is not set to ERROR either.
The file test.sql is in ANSI format.
When I load the script instead the variable returns SUCCESS.
I'm trying to run the scripts on Windows 2003 Server with SQL Server 2000.
I'm running out of ideas to try. Please help.
Regards,
Tony