Exactly like here I want to disable the foreign key check when modifying the database.
However I can't get it to work. If I try this:
jdbc:sqlserver://myserver:1433?sessionVariables=FOREIGN_KEY_CHECKS=0
It will try to take the whole 1433?sessionVariables=FOREIGN_KEY_CHECKS=0
as a port number.
Trying it like this:
jdbc:sqlserver://myserver:1433;FOREIGN_KEY_CHECKS=0
doesn't help either, it will setup the connection but throw a foreign-key constraint violation.
I already looked through the Microsoft API on the JDBC driver and googled, but it wasn't any help.
Does someone know a solution?