Select into relation already exists example sql server. type = 'F' -- F indicates a foreign key constraint .