msserver Foreign key to a unique constraint not supported?


When I attempt to add a foreign  key constraint to a unique constraint (not a pk, thought it is not null and unique), I get the error: addFroeignkey not supported on msserver.

The sqlserver is sqlserverexpress 2012 and the jdbc driver is sqljdbc4.jar, got the latest from Microsoft sites.

I did not find it in any documentation that it does not work,

Am I doing something wrong here?

  • Anu