Carlosdl
34775 pts. | Nov 17 2009 2:59PM GMT
That should work if IDpel and IDvta are the primary key of PeliculaEnVenta.
Can you run the following query, to check the pk of the table ?
SELECT <a href="http://kc.name" title="http://kc. " target="_blank">kc.name</a>, <a href="http://c.name" title="http://c. " target="_blank">c.name</a> FROM sys.key_constraints kc JOIN sys.index_columns ic ON kc.parent_object_id = ic.object_id JOIN sys.columns c ON ic.object_id = c.object_id AND ic.column_id = c.column_id WHERE kc.type = ‘PK’ AND OBJECT_NAME(kc.parent_object_id) = ‘PeliculaEnVenta’;
Carlosdl
34775 pts. | Nov 17 2009 3:01PM GMT
The first line should be:
SELECT kc dot name, c dot name






