﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Programming / General  / Count primary key violations on a table / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 11:46:34 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Count primary key violations on a table</title><link>http://www.sqlservercentral.com/Forums/Topic1383797-23-1.aspx</link><description>One way could be to use an INSTEAD OF triggerThe below mentioned link could be of help to you[url]http://msdn.microsoft.com/en-us/library/ms175521%28v=sql.105%29.aspx[/url]</description><pubDate>Tue, 13 Nov 2012 23:33:00 GMT</pubDate><dc:creator>Kingston Dhasian</dc:creator></item><item><title>Count primary key violations on a table</title><link>http://www.sqlservercentral.com/Forums/Topic1383797-23-1.aspx</link><description>Hi,I am relatively new to SQL Server.  I have an app that frequently inserts values with the same key to a table.  I need a way to monitor the frequency at which primary key violations are occurring on this table.It could be real time monitoring or gathering data after the fact.  The key is I only want the counts for this 1 table.Thanks,Andy</description><pubDate>Mon, 12 Nov 2012 11:32:20 GMT</pubDate><dc:creator>andy.richman</dc:creator></item></channel></rss>