Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. INSERT INTO Dudek.DIM_PRODUCT VALUES(1, 'Product', 0.00, 'Black', 'Wheels', 'Components', 300, 5, 1);
  2. Msg 2627, Level 14, State 1, Line 190
  3. Violation of PRIMARY KEY constraint 'PK__DIM_PROD__B40CC6EDB061C2D6'. Cannot insert du-plicate key in object 'Dudek.DIM_PRODUCT'. The duplicate key value is (1).
  4. The statement has been terminated.
  5.  
  6. INSERT INTO Dudek.DIM_CUSTOMER VALUES(11000, 'Jan', 'Nowak', 'Mr.', 'City', 'Australia', 'AU', 'Pacific');
  7. Msg 2627, Level 14, State 1, Line 191
  8. Violation of PRIMARY KEY constraint 'PK__DIM_CUST__A4AE64B8DCABA1EA'. Cannot insert du-plicate key in object 'Dudek.DIM_CUSTOMER'. The duplicate key value is (11000).
  9. The statement has been terminated.
  10.  
  11. INSERT INTO Dudek.DIM_SALESPERSON VALUES(274, 'Jan', 'Nowak', 'Mr.', 'M', 'US' , 'North America');
  12. Msg 2627, Level 14, State 1, Line 192
  13. Violation of PRIMARY KEY constraint 'PK__DIM_SALE__7A591C18123FC9DA'. Cannot insert du-plicate key in object 'Dudek.DIM_SALESPERSON'. The duplicate key value is (274).
  14. The statement has been terminated.
  15.  
  16.  
  17.  
  18. INSERT INTO Dudek.FACT_SALES VALUES(5, 11000, 274, 20131201,20131208, 1, 34.99, 0.00);
  19. Msg 547, Level 16, State 0, Line 195
  20. The INSERT statement conflicted with the FOREIGN KEY constraint "FK__FACT_SALE__Produ__52793849". The conflict occurred in database "master", table "Dudek.DIM_PRODUCT", column 'ProductID'.
  21. The statement has been terminated.
  22.  
  23. INSERT INTO Dudek.FACT_SALES VALUES(1, 1, 274, 20131201,20131208, 1, 34.99, 0.00);
  24. Msg 547, Level 16, State 0, Line 196
  25. The INSERT statement conflicted with the FOREIGN KEY constraint "FK__FACT_SALE__Custo__51851410". The conflict occurred in database "master", table "Dudek.DIM_CUSTOMER", column 'CustomerID'.
  26. The statement has been terminated.
  27.  
  28. INSERT INTO Dudek.FACT_SALES VALUES(1, 11000, 1, 20131201,20131208, 1, 34.99, 0.00);
  29. Msg 547, Level 16, State 0, Line 197
  30. The INSERT statement conflicted with the FOREIGN KEY constraint "FK__FACT_SALE__Sales__536D5C82". The conflict occurred in database "master", table "Dudek.DIM_SALESPERSON", column 'SalesPersonID'.
  31. The statement has been terminated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement