Forum: MS SQL Dec 3rd, 2008 |
| Replies: 4 Views: 1,946 Hi thanks for that, but it turned out the whole of the code can be simplified using IF EXISTS, arghh this is so obvious when I think about it. Sorry about the newbie post everyone |
Forum: MS SQL Dec 3rd, 2008 |
| Replies: 4 Views: 1,946 Yes I know that, hence if it already exists it should do an update! Not a replace. |
Forum: MS SQL Dec 2nd, 2008 |
| Replies: 4 Views: 1,946 The following stored procedure is supposed to add a new record to the database OR update Mdescript if it already exists. However I keep getting errors such as primary key violations. Please take a... |