﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / sign of corrupt database? / 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>Thu, 23 May 2013 21:38:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: sign of corrupt database?</title><link>http://www.sqlservercentral.com/Forums/Topic1394345-391-1.aspx</link><description>Could the above be a permissions issue? It is peculiar that in VS my ASP.net SqlDataSource has the "Generate INSERT, DELETE, MODIFY Statements" grayed out... my other tables do not behave like this when attempting a SqlDataSource creation. Some posts have suggested a lack of a Primary Key, but my table has one.</description><pubDate>Mon, 10 Dec 2012 06:36:20 GMT</pubDate><dc:creator>briancampbellmcad</dc:creator></item><item><title>RE: sign of corrupt database?</title><link>http://www.sqlservercentral.com/Forums/Topic1394345-391-1.aspx</link><description>As a side bar, I recommend adding SET NOCOUNT ON at the beginning of each trigger so that it suppresses all of that unnecessary IO.  To wit, sometimes a GUI will interpret such returned row count as an indication of an error.</description><pubDate>Sat, 08 Dec 2012 23:00:14 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: sign of corrupt database?</title><link>http://www.sqlservercentral.com/Forums/Topic1394345-391-1.aspx</link><description>That makes sense about the number of transactions and those are consistent with the dependent triggers. I dropped them temporarily and recreated them and the number of transactions reponded accordingly. My problem must be on the application side. In Visual Studio I have an ASP.net app that my pages for reading data are working fine and my pages for manipulating data are doing fine as well, but my page for entering data is not. I tried reconfiguring the SqlDataSource and the usual place where I can instruct it to Generate Update, Delete, and Modify statements is strangely grayed out.</description><pubDate>Sat, 08 Dec 2012 13:15:30 GMT</pubDate><dc:creator>briancampbellmcad</dc:creator></item><item><title>RE: sign of corrupt database?</title><link>http://www.sqlservercentral.com/Forums/Topic1394345-391-1.aspx</link><description>[quote][b]briancampbellmcad (12/8/2012)[/b][hr]Is this a sign of a corrupted database? [/quote]No.[quote]This happened just after I manually deleted all records from a table and a few of them gave errors of something like "cannot delete" due to some type of unique key violation... I was able to eventually delete them all but this may have corrupted it?[/quote] Nope.[quote]If the database is corrupt should I script out the entire database and recreate it?[/quote]Well, it's not a sign of corruption anyway, and scripting out a DB is not the way you recover from corruption.It looks like either the trigger does more than one operation or the trigger's operations are firing other triggers or there's more than one trigger on the table.</description><pubDate>Sat, 08 Dec 2012 11:47:38 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>sign of corrupt database?</title><link>http://www.sqlservercentral.com/Forums/Topic1394345-391-1.aspx</link><description>When I manually run this insert script below I'm usually expecting to see (2 lines due to a trigger that posts a log entry):(1 row(s) affected)(1 row(s) affected)However this is what I see:(0 row(s) affected)(1 row(s) affected)(0 row(s) affected)(0 row(s) affected)(0 row(s) affected)(1 row(s) affected)(1 row(s) affected)INSERT INTO [TrackIT].[dbo].[tblTransactions]           ([PO_Number]	       ,[Buyer_Initial]	       ,[Quantity]	       ,[Unit_Price]	       ,[Software_Description]	       ,[HeatTicketNumber]	       ,[Transaction_Date]	       ,[Transaction_Type])     VALUES           ('3347304',            'OCC',            10,            '479.36',            'MS Project Std 2010',            '1939854',            '12/7/2012',            'Bulk Purchase')GOIs this a sign of a corrupted database? This happened just after I manually deleted all records from a table and a few of them gave errors of something like "cannot delete" due to some type of unique key violation... I was able to eventually delete them all but this may have corrupted it? I dropeed and recreated the tables in question and the associated triggers, but still getting these results and the web application I have connected is unable to add records, although one I add a record manually I can modify it from my app so I am getting a connection.If the database is corrupt should I script out the entire database and recreate it?</description><pubDate>Sat, 08 Dec 2012 10:58:50 GMT</pubDate><dc:creator>briancampbellmcad</dc:creator></item></channel></rss>