Problème scriptella passage Mysql à SQLServer
Bonjour,
J'ai un script de rempliassage d'une base de donnée qui fonctionnait très bien avec Mysql. Je fais le portage vers SQLServer mais je bute sur une erreur...
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
scriptella.execution.EtlExecutorException: Location: /etl/script[1]
JDBC provider exception: Unable to execute statement
Error statement:
SET FOREIGN_KEY_CHECKS=0
Error codes: [S0001, 102]
Driver exception: com.microsoft.sqlserver.jdbc.SQLServerException: Syntaxe incorrecte vers '='.
at scriptella.execution.EtlExecutor.execute(EtlExecutor.java:172)
at scriptella.driver.spring.EtlExecutorBean.execute(EtlExecutorBean.java:144)
at scriptella.execution.EtlExecutor.execute(EtlExecutor.java:143)
at scriptella.driver.spring.EtlExecutorBean.execute(EtlExecutorBean.java:136)
at com.orange.connectedemergency.cenomad.referentiel.synchro.PopulateRef.execute(PopulateRef.java:78)
at com.orange.connectedemergency.cenomad.referentiel.synchro.PopulateRef.main(PopulateRef.java:92)
Caused by: scriptella.core.ExceptionInterceptor$ExecutionException: /etl/script[1] failed: Unable to execute statement
at scriptella.core.ExceptionInterceptor.execute(ExceptionInterceptor.java:44)
at scriptella.core.Session.execute(Session.java:103)
at scriptella.execution.EtlExecutor.execute(EtlExecutor.java:209)
at scriptella.execution.EtlExecutor.execute(EtlExecutor.java:165) |
voici l'url de connection qui fonctionne
Code:
1 2
| <connection id="out" driver="auto" url="jdbc:sqlserver://127.0.0.1"
user="testeur" password="test" /> |
faut-il changer la syntaxe de min script puisque la ligne SET FOREIGN_KEY_CHECKS=0; ne lui plait pas. (Si j'enlève cette ligne la suivante "TRUNCATE ..." lance la même erreur.
Quelqu'un a une idée?
Merci