Tuesday, February 14, 2012
Database Corruption?
I have a 36GB database that has failed it's integrity checks as part of a
scheduled maintenance plan over the weekend. The plan history and job step
history did not provide any useful information. I've been trying to run a
DBCC CHECKDB on the database (no options) for the last 2 hours and it is
still running. In the past I believe the DBCC CHECKDB statement required
less than 30 minutes to complete. What are my options at this point outside
of restoring from a backup?
Thanks
Jerry
Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
recommendations?
Thanks
Jerry
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
> Hi,
> I have a 36GB database that has failed it's integrity checks as part of a
> scheduled maintenance plan over the weekend. The plan history and job
> step history did not provide any useful information. I've been trying to
> run a DBCC CHECKDB on the database (no options) for the last 2 hours and
> it is still running. In the past I believe the DBCC CHECKDB statement
> required less than 30 minutes to complete. What are my options at this
> point outside of restoring from a backup?
> Thanks
> Jerry
>
|||Hi
Rather wait the DBCC out and see what it shows. You rather find out now than
in another 24 hours that the DB is corrupt.
In the mean time, fine the last good backup and restore it to another server
to see if it is also corrupt and if you can actually restore it.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
> recommendations?
> Thanks
> Jerry
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>
|||Thanks Mike. I was just starting that process as well as examining the
event logs to see if this could be a HW issue.
Will keep you posted.
Jerry
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
> Hi
> Rather wait the DBCC out and see what it shows. You rather find out now
> than in another 24 hours that the DB is corrupt.
> In the mean time, fine the last good backup and restore it to another
> server to see if it is also corrupt and if you can actually restore it.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
>
|||Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
couple of days ago. Also, an Error 8648 "Index entry for row ID was not
found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME with
this number reveals a stored procedure. Any ideas? The DBCC is still
running and the last backup should be on the test box in about 30 minutes.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
> Thanks Mike. I was just starting that process as well as examining the
> event logs to see if this could be a HW issue.
> Will keep you posted.
> Jerry
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
>
|||Problem solved. Corrupt NC index on table with apx 150 million rows.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:eaOzlIWvFHA.3720@.TK2MSFTNGP14.phx.gbl...
> Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
> couple of days ago. Also, an Error 8648 "Index entry for row ID was not
> found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME
> with this number reveals a stored procedure. Any ideas? The DBCC is
> still running and the last backup should be on the test box in about 30
> minutes.
>
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
>
|||FWIW, the extra time you're seeing comes from DBCC doing extensive
non-clustered index to base table cross checks to determine which NC index
rows have no matching data rows, or which data rows have no matching NC
index rows. This only happens when we find corruptions in the database,
and, as you have found, is quite time-consuming.
Thanks,
Ryan Stonecipher
Microsoft Sql Server Storage Engine, DBCC
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:u0kgwaXvFHA.1256@.TK2MSFTNGP09.phx.gbl...
> Problem solved. Corrupt NC index on table with apx 150 million rows.
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:eaOzlIWvFHA.3720@.TK2MSFTNGP14.phx.gbl...
>
Database Corruption?
I have a 36GB database that has failed it's integrity checks as part of a
scheduled maintenance plan over the weekend. The plan history and job step
history did not provide any useful information. I've been trying to run a
DBCC CHECKDB on the database (no options) for the last 2 hours and it is
still running. In the past I believe the DBCC CHECKDB statement required
less than 30 minutes to complete. What are my options at this point outside
of restoring from a backup?
Thanks
JerryOk...over 3 hours for the DBCC CHECKDB and it is still running. Any
recommendations?
Thanks
Jerry
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
> Hi,
> I have a 36GB database that has failed it's integrity checks as part of a
> scheduled maintenance plan over the weekend. The plan history and job
> step history did not provide any useful information. I've been trying to
> run a DBCC CHECKDB on the database (no options) for the last 2 hours and
> it is still running. In the past I believe the DBCC CHECKDB statement
> required less than 30 minutes to complete. What are my options at this
> point outside of restoring from a backup?
> Thanks
> Jerry
>|||Hi
Rather wait the DBCC out and see what it shows. You rather find out now than
in another 24 hours that the DB is corrupt.
In the mean time, fine the last good backup and restore it to another server
to see if it is also corrupt and if you can actually restore it.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
> recommendations?
> Thanks
> Jerry
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>|||Thanks Mike. I was just starting that process as well as examining the
event logs to see if this could be a HW issue.
Will keep you posted.
Jerry
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
> Hi
> Rather wait the DBCC out and see what it shows. You rather find out now
> than in another 24 hours that the DB is corrupt.
> In the mean time, fine the last good backup and restore it to another
> server to see if it is also corrupt and if you can actually restore it.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
>|||Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
couple of days ago. Also, an Error 8648 "Index entry for row ID was not
found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME with
this number reveals a stored procedure. Any ideas? The DBCC is still
running and the last backup should be on the test box in about 30 minutes.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
> Thanks Mike. I was just starting that process as well as examining the
> event logs to see if this could be a HW issue.
> Will keep you posted.
> Jerry
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
>|||Problem solved. Corrupt NC index on table with apx 150 million rows.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:eaOzlIWvFHA.3720@.TK2MSFTNGP14.phx.gbl...
> Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
> couple of days ago. Also, an Error 8648 "Index entry for row ID was not
> found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME
> with this number reveals a stored procedure. Any ideas? The DBCC is
> still running and the last backup should be on the test box in about 30
> minutes.
>
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
>|||FWIW, the extra time you're seeing comes from DBCC doing extensive
non-clustered index to base table cross checks to determine which NC index
rows have no matching data rows, or which data rows have no matching NC
index rows. This only happens when we find corruptions in the database,
and, as you have found, is quite time-consuming.
Thanks,
--
Ryan Stonecipher
Microsoft Sql Server Storage Engine, DBCC
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:u0kgwaXvFHA.1256@.TK2MSFTNGP09.phx.gbl...
> Problem solved. Corrupt NC index on table with apx 150 million rows.
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:eaOzlIWvFHA.3720@.TK2MSFTNGP14.phx.gbl...
>
Database Corruption?
I have a 36GB database that has failed it's integrity checks as part of a
scheduled maintenance plan over the weekend. The plan history and job step
history did not provide any useful information. I've been trying to run a
DBCC CHECKDB on the database (no options) for the last 2 hours and it is
still running. In the past I believe the DBCC CHECKDB statement required
less than 30 minutes to complete. What are my options at this point outside
of restoring from a backup?
Thanks
JerryOk...over 3 hours for the DBCC CHECKDB and it is still running. Any
recommendations?
Thanks
Jerry
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
> Hi,
> I have a 36GB database that has failed it's integrity checks as part of a
> scheduled maintenance plan over the weekend. The plan history and job
> step history did not provide any useful information. I've been trying to
> run a DBCC CHECKDB on the database (no options) for the last 2 hours and
> it is still running. In the past I believe the DBCC CHECKDB statement
> required less than 30 minutes to complete. What are my options at this
> point outside of restoring from a backup?
> Thanks
> Jerry
>|||Hi
Rather wait the DBCC out and see what it shows. You rather find out now than
in another 24 hours that the DB is corrupt.
In the mean time, fine the last good backup and restore it to another server
to see if it is also corrupt and if you can actually restore it.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
> recommendations?
> Thanks
> Jerry
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>> Hi,
>> I have a 36GB database that has failed it's integrity checks as part of a
>> scheduled maintenance plan over the weekend. The plan history and job
>> step history did not provide any useful information. I've been trying to
>> run a DBCC CHECKDB on the database (no options) for the last 2 hours and
>> it is still running. In the past I believe the DBCC CHECKDB statement
>> required less than 30 minutes to complete. What are my options at this
>> point outside of restoring from a backup?
>> Thanks
>> Jerry
>|||Thanks Mike. I was just starting that process as well as examining the
event logs to see if this could be a HW issue.
Will keep you posted.
Jerry
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
> Hi
> Rather wait the DBCC out and see what it shows. You rather find out now
> than in another 24 hours that the DB is corrupt.
> In the mean time, fine the last good backup and restore it to another
> server to see if it is also corrupt and if you can actually restore it.
> Regards
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
>> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
>> recommendations?
>> Thanks
>> Jerry
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>> Hi,
>> I have a 36GB database that has failed it's integrity checks as part of
>> a scheduled maintenance plan over the weekend. The plan history and job
>> step history did not provide any useful information. I've been trying
>> to run a DBCC CHECKDB on the database (no options) for the last 2 hours
>> and it is still running. In the past I believe the DBCC CHECKDB
>> statement required less than 30 minutes to complete. What are my
>> options at this point outside of restoring from a backup?
>> Thanks
>> Jerry
>>
>|||Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
couple of days ago. Also, an Error 8648 "Index entry for row ID was not
found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME with
this number reveals a stored procedure. Any ideas? The DBCC is still
running and the last backup should be on the test box in about 30 minutes.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
> Thanks Mike. I was just starting that process as well as examining the
> event logs to see if this could be a HW issue.
> Will keep you posted.
> Jerry
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
>> Hi
>> Rather wait the DBCC out and see what it shows. You rather find out now
>> than in another 24 hours that the DB is corrupt.
>> In the mean time, fine the last good backup and restore it to another
>> server to see if it is also corrupt and if you can actually restore it.
>> Regards
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
>> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
>> recommendations?
>> Thanks
>> Jerry
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>> Hi,
>> I have a 36GB database that has failed it's integrity checks as part of
>> a scheduled maintenance plan over the weekend. The plan history and
>> job step history did not provide any useful information. I've been
>> trying to run a DBCC CHECKDB on the database (no options) for the last
>> 2 hours and it is still running. In the past I believe the DBCC
>> CHECKDB statement required less than 30 minutes to complete. What are
>> my options at this point outside of restoring from a backup?
>> Thanks
>> Jerry
>>
>>
>|||Problem solved. Corrupt NC index on table with apx 150 million rows.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:eaOzlIWvFHA.3720@.TK2MSFTNGP14.phx.gbl...
> Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
> couple of days ago. Also, an Error 8648 "Index entry for row ID was not
> found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME
> with this number reveals a stored procedure. Any ideas? The DBCC is
> still running and the last backup should be on the test box in about 30
> minutes.
>
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
>> Thanks Mike. I was just starting that process as well as examining the
>> event logs to see if this could be a HW issue.
>> Will keep you posted.
>> Jerry
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
>> Hi
>> Rather wait the DBCC out and see what it shows. You rather find out now
>> than in another 24 hours that the DB is corrupt.
>> In the mean time, fine the last good backup and restore it to another
>> server to see if it is also corrupt and if you can actually restore it.
>> Regards
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
>> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
>> recommendations?
>> Thanks
>> Jerry
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>> Hi,
>> I have a 36GB database that has failed it's integrity checks as part
>> of a scheduled maintenance plan over the weekend. The plan history
>> and job step history did not provide any useful information. I've
>> been trying to run a DBCC CHECKDB on the database (no options) for the
>> last 2 hours and it is still running. In the past I believe the DBCC
>> CHECKDB statement required less than 30 minutes to complete. What are
>> my options at this point outside of restoring from a backup?
>> Thanks
>> Jerry
>>
>>
>>
>|||FWIW, the extra time you're seeing comes from DBCC doing extensive
non-clustered index to base table cross checks to determine which NC index
rows have no matching data rows, or which data rows have no matching NC
index rows. This only happens when we find corruptions in the database,
and, as you have found, is quite time-consuming.
Thanks,
--
Ryan Stonecipher
Microsoft Sql Server Storage Engine, DBCC
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
news:u0kgwaXvFHA.1256@.TK2MSFTNGP09.phx.gbl...
> Problem solved. Corrupt NC index on table with apx 150 million rows.
> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
> news:eaOzlIWvFHA.3720@.TK2MSFTNGP14.phx.gbl...
>> Ok...event log shows a SQL Server Assertion error and a Error 3624 from a
>> couple of days ago. Also, an Error 8648 "Index entry for row ID was not
>> found in index ID 2 of table 1403152044. However, a SELECT OBJECT_NAME
>> with this number reveals a stored procedure. Any ideas? The DBCC is
>> still running and the last backup should be on the test box in about 30
>> minutes.
>>
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:u1PqWzVvFHA.3500@.TK2MSFTNGP09.phx.gbl...
>> Thanks Mike. I was just starting that process as well as examining the
>> event logs to see if this could be a HW issue.
>> Will keep you posted.
>> Jerry
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:uj25DxVvFHA.3792@.TK2MSFTNGP10.phx.gbl...
>> Hi
>> Rather wait the DBCC out and see what it shows. You rather find out now
>> than in another 24 hours that the DB is corrupt.
>> In the mean time, fine the last good backup and restore it to another
>> server to see if it is also corrupt and if you can actually restore it.
>> Regards
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23UswseVvFHA.1252@.TK2MSFTNGP09.phx.gbl...
>> Ok...over 3 hours for the DBCC CHECKDB and it is still running. Any
>> recommendations?
>> Thanks
>> Jerry
>> "Jerry Spivey" <jspivey@.vestas-awt.com> wrote in message
>> news:%23j6KB$UvFHA.2504@.tk2msftngp13.phx.gbl...
>> Hi,
>> I have a 36GB database that has failed it's integrity checks as part
>> of a scheduled maintenance plan over the weekend. The plan history
>> and job step history did not provide any useful information. I've
>> been trying to run a DBCC CHECKDB on the database (no options) for
>> the last 2 hours and it is still running. In the past I believe the
>> DBCC CHECKDB statement required less than 30 minutes to complete.
>> What are my options at this point outside of restoring from a backup?
>> Thanks
>> Jerry
>>
>>
>>
>>
>
Database corruption problem?
seem like a corruption problem but I can't identify what's happening.
I'd appreciate any ideas.
On Wednesday we noticed that 85 records in a person table had been
added. These appear to be old versions of existing records. Most fields
are duplicates, a few are slightly different, some are null. For
example, Joe Smith now has 2 records instead of one, with different
phone numbers. The primary key is an autoincrement field and the new
records have normally incremented ID's. The user interface is a c# web
app using stored procedures. The 'last_update_date' field is blank on
the duplicate records and this is added by the stored procedure using
GetDate() so it doesn't appear that the application code or the SP
created the bad records.
On Thursday, a similar problem occurred on a different table but on a
larger scale - a 10,000 record table increased to 30,000, basically 3
copies of each record. This table also uses an autoincrement ID, this
time there is a gap of a couple of thousand berfore the new records
begin.
DBCC CheckDB finds no problems. A standard maintenance script (rebuild
indexes etc. ran without errors on the previous Sunday night. Nightly
full backups for the previous days are OK. Inside a firewall, only IT
folks have direct access, virus software running.
In the meantime, I've added some unique constraints on last/first names
in the person table to try to catch an error if it happens again. but
we are running out of ideas, it seems impossible but... any
suggestions appreciated.I would run a profiler over night and see if you can see anything unsual.
"GregC" wrote:
> We have a strange problem with an SQL SERVER 2000 database, it doesn't
> seem like a corruption problem but I can't identify what's happening.
> I'd appreciate any ideas.
> On Wednesday we noticed that 85 records in a person table had been
> added. These appear to be old versions of existing records. Most fields
> are duplicates, a few are slightly different, some are null. For
> example, Joe Smith now has 2 records instead of one, with different
> phone numbers. The primary key is an autoincrement field and the new
> records have normally incremented ID's. The user interface is a c# web
> app using stored procedures. The 'last_update_date' field is blank on
> the duplicate records and this is added by the stored procedure using
> GetDate() so it doesn't appear that the application code or the SP
> created the bad records.
> On Thursday, a similar problem occurred on a different table but on a
> larger scale - a 10,000 record table increased to 30,000, basically 3
> copies of each record. This table also uses an autoincrement ID, this
> time there is a gap of a couple of thousand berfore the new records
> begin.
> DBCC CheckDB finds no problems. A standard maintenance script (rebuild
> indexes etc. ran without errors on the previous Sunday night. Nightly
> full backups for the previous days are OK. Inside a firewall, only IT
> folks have direct access, virus software running.
> In the meantime, I've added some unique constraints on last/first names
> in the person table to try to catch an error if it happens again. but
> we are running out of ideas, it seems impossible but... any
> suggestions appreciated.
>|||Also, I would enable login auditing so you can see who is logging into the
instance. Then, I would grab a copy of Lumigent's Log Explorer and open up
the tranaction log to find the transactions that put the data into the
table. Many times they will be tagged with a network name or some other
form of a value to ID the workstation the command came from.
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.
"SBAUER" <SBAUER@.discussions.microsoft.com> wrote in message
news:AAECCB2C-1143-4943-AF43-037BF273AF55@.microsoft.com...[vbcol=seagreen]
>I would run a profiler over night and see if you can see anything unsual.
>
> "GregC" wrote:
>
Database corruption problem?
seem like a corruption problem but I can't identify what's happening.
I'd appreciate any ideas.
On Wednesday we noticed that 85 records in a person table had been
added. These appear to be old versions of existing records. Most fields
are duplicates, a few are slightly different, some are null. For
example, Joe Smith now has 2 records instead of one, with different
phone numbers. The primary key is an autoincrement field and the new
records have normally incremented ID's. The user interface is a c# web
app using stored procedures. The 'last_update_date' field is blank on
the duplicate records and this is added by the stored procedure using
GetDate() so it doesn't appear that the application code or the SP
created the bad records.
On Thursday, a similar problem occurred on a different table but on a
larger scale - a 10,000 record table increased to 30,000, basically 3
copies of each record. This table also uses an autoincrement ID, this
time there is a gap of a couple of thousand berfore the new records
begin.
DBCC CheckDB finds no problems. A standard maintenance script (rebuild
indexes etc. ran without errors on the previous Sunday night. Nightly
full backups for the previous days are OK. Inside a firewall, only IT
folks have direct access, virus software running.
In the meantime, I've added some unique constraints on last/first names
in the person table to try to catch an error if it happens again. but
we are running out of ideas, it seems impossible but... any
suggestions appreciated.I would run a profiler over night and see if you can see anything unsual.
"GregC" wrote:
> We have a strange problem with an SQL SERVER 2000 database, it doesn't
> seem like a corruption problem but I can't identify what's happening.
> I'd appreciate any ideas.
> On Wednesday we noticed that 85 records in a person table had been
> added. These appear to be old versions of existing records. Most fields
> are duplicates, a few are slightly different, some are null. For
> example, Joe Smith now has 2 records instead of one, with different
> phone numbers. The primary key is an autoincrement field and the new
> records have normally incremented ID's. The user interface is a c# web
> app using stored procedures. The 'last_update_date' field is blank on
> the duplicate records and this is added by the stored procedure using
> GetDate() so it doesn't appear that the application code or the SP
> created the bad records.
> On Thursday, a similar problem occurred on a different table but on a
> larger scale - a 10,000 record table increased to 30,000, basically 3
> copies of each record. This table also uses an autoincrement ID, this
> time there is a gap of a couple of thousand berfore the new records
> begin.
> DBCC CheckDB finds no problems. A standard maintenance script (rebuild
> indexes etc. ran without errors on the previous Sunday night. Nightly
> full backups for the previous days are OK. Inside a firewall, only IT
> folks have direct access, virus software running.
> In the meantime, I've added some unique constraints on last/first names
> in the person table to try to catch an error if it happens again. but
> we are running out of ideas, it seems impossible but... any
> suggestions appreciated.
>|||Also, I would enable login auditing so you can see who is logging into the
instance. Then, I would grab a copy of Lumigent's Log Explorer and open up
the tranaction log to find the transactions that put the data into the
table. Many times they will be tagged with a network name or some other
form of a value to ID the workstation the command came from.
--
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.
"SBAUER" <SBAUER@.discussions.microsoft.com> wrote in message
news:AAECCB2C-1143-4943-AF43-037BF273AF55@.microsoft.com...
>I would run a profiler over night and see if you can see anything unsual.
>
> "GregC" wrote:
>> We have a strange problem with an SQL SERVER 2000 database, it doesn't
>> seem like a corruption problem but I can't identify what's happening.
>> I'd appreciate any ideas.
>> On Wednesday we noticed that 85 records in a person table had been
>> added. These appear to be old versions of existing records. Most fields
>> are duplicates, a few are slightly different, some are null. For
>> example, Joe Smith now has 2 records instead of one, with different
>> phone numbers. The primary key is an autoincrement field and the new
>> records have normally incremented ID's. The user interface is a c# web
>> app using stored procedures. The 'last_update_date' field is blank on
>> the duplicate records and this is added by the stored procedure using
>> GetDate() so it doesn't appear that the application code or the SP
>> created the bad records.
>> On Thursday, a similar problem occurred on a different table but on a
>> larger scale - a 10,000 record table increased to 30,000, basically 3
>> copies of each record. This table also uses an autoincrement ID, this
>> time there is a gap of a couple of thousand berfore the new records
>> begin.
>> DBCC CheckDB finds no problems. A standard maintenance script (rebuild
>> indexes etc. ran without errors on the previous Sunday night. Nightly
>> full backups for the previous days are OK. Inside a firewall, only IT
>> folks have direct access, virus software running.
>> In the meantime, I've added some unique constraints on last/first names
>> in the person table to try to catch an error if it happens again. but
>> we are running out of ideas, it seems impossible but... any
>> suggestions appreciated.
>>
Database corruption from simple query
In order to profile the responsiveness I worked up a test database with the general collection of fields we are interested in. The main table has 80,000 rows with one primary key and one of the numeric fields indexed. There is a 'nickname' table which contains about 150,000 items with just a string for a nickname and the key that nickname goes with. With all the rows and an alpha index for the nickname field the database is about 42 mb. Which is pushing the amount of storage on the handheld, but of our two models one is fine and one still has about 30 mb free with the DB on the handheld.
My problem seems to be that one kind of device can work with this database and one cannot. The device I was using the prototype the application is a HP iPAC hx2490b. On that device more than once I have corrupted the database, but not yet as a reproducible process.
My other device is a Dell Axim X51. On that device I seem to corrupt the database with very simple actions. Just now I tried a query like (From the Query Analyzer 3.0)
Code Snippet
Select * from ReagentNicknamesTable where alt_names like 'alpha%'
Which should hit 2099 of the 150,000 records. I got about 400 back and then the table was corrupted. On this device I cannot recover the database as there isn't enough disk space for two copies of the DB. So corruption in the field would be a showstopper. But getting corruption from a simple query like this means I really can't use SSCE.
This problem with the dell showed up when I was using the original device sql that came with VS2005. (SQL Server Mobile?) The cabs & dll's were dated from 2005 and had a build number of 3.0.5206.0. I have since updated to the current version of SQL Server Compact Edition and the dlls have build number 3.0.5300.0. The IDE is set to Compact Framwork 2.0, sp1: cgacutil reports CF 2.0.6129.0.
So help! Have I hit some listed or unlisted limits to SSCE on the Compact Framework? thanks.
So on the Dell handheld, I did a hard reset, redeployed everything and copied a fresh copy of the DB onto the handheld.
Running the above query from the QA yielded the same error. But this time I was able to copy the text before I moved on.
Here is the result:
400 row(s) affected
FAILED: Select * from ReagentNicknamesTable where alt_names like 'alpha%'
Error: 80004005 Unspecified error
Error: 0x80004005 E_FAIL
Native Error: (25017)
Description: The database file may be corrupted. Run the repair utility to check the database file. [,,,Database name,,]
Interface defining error: IID_IRowset
Param. 0: 0
Param. 1: 0
Param. 2: 0
Param. 3: My Documents\ChemistryLabacus\data\ReagentDatabase.sdf
Param. 4:
Param. 5:
Running this exact query on the HP iPAC yields the 2099 rows that match this query.
|||
Try to move the SDF file and the "temp path" to a storage card.
So your connection string would look something like:
"Data Source=\Storage Card\database.sdf;temp path=\Storage Card"
|||Thanks for the reply. But, simply fixing the database is not really the issue. I could do it on a different handheld (the HP) that just ships with more memory. Or, I imagine, on a desktop with the desktop version of SSCE. The real question is why I get corruption in the first place. And why on the Dell but not the HP, when as far as I can tell they are running the same OS & DB engine.Since my post yesterday we have culled the main database down to one that is is smaller (45k rows in the main table & 77k rows in the nickname index table.) This database is 20 mb with indexes. So far it has not shown corruption on the Dell.
The main reason that I'm hung up on the corruption issue (other than that it is annoying) is that we have a body of users who have these Dell handhelds and I'm supposed to build a release with this database to send to them. I would like some confirmation of good practices to avoid the corruption in the first place. Are there articles or forums who discuss the capacities and limitations of SSCE under WM5?
|||
Check your program memory, if it's too low it could crash. Happened to me many times, and it gives an empty exception message.
|||Thanks. I will look into that.Database corruption from simple query
In order to profile the responsiveness I worked up a test database with the general collection of fields we are interested in. The main table has 80,000 rows with one primary key and one of the numeric fields indexed. There is a 'nickname' table which contains about 150,000 items with just a string for a nickname and the key that nickname goes with. With all the rows and an alpha index for the nickname field the database is about 42 mb. Which is pushing the amount of storage on the handheld, but of our two models one is fine and one still has about 30 mb free with the DB on the handheld.
My problem seems to be that one kind of device can work with this database and one cannot. The device I was using the prototype the application is a HP iPAC hx2490b. On that device more than once I have corrupted the database, but not yet as a reproducible process.
My other device is a Dell Axim X51. On that device I seem to corrupt the database with very simple actions. Just now I tried a query like (From the Query Analyzer 3.0)
Code Snippet
Select * from ReagentNicknamesTable where alt_names like 'alpha%'
Which should hit 2099 of the 150,000 records. I got about 400 back and then the table was corrupted. On this device I cannot recover the database as there isn't enough disk space for two copies of the DB. So corruption in the field would be a showstopper. But getting corruption from a simple query like this means I really can't use SSCE.
This problem with the dell showed up when I was using the original device sql that came with VS2005. (SQL Server Mobile?) The cabs & dll's were dated from 2005 and had a build number of 3.0.5206.0. I have since updated to the current version of SQL Server Compact Edition and the dlls have build number 3.0.5300.0. The IDE is set to Compact Framwork 2.0, sp1: cgacutil reports CF 2.0.6129.0.
So help! Have I hit some listed or unlisted limits to SSCE on the Compact Framework? thanks.
So on the Dell handheld, I did a hard reset, redeployed everything and copied a fresh copy of the DB onto the handheld.
Running the above query from the QA yielded the same error. But this time I was able to copy the text before I moved on.
Here is the result:
400 row(s) affected
FAILED: Select * from ReagentNicknamesTable where alt_names like 'alpha%'
Error: 80004005 Unspecified error
Error: 0x80004005 E_FAIL
Native Error: (25017)
Description: The database file may be corrupted. Run the repair utility to check the database file. [,,,Database name,,]
Interface defining error: IID_IRowset
Param. 0: 0
Param. 1: 0
Param. 2: 0
Param. 3: My Documents\ChemistryLabacus\data\ReagentDatabase.sdf
Param. 4:
Param. 5:
Running this exact query on the HP iPAC yields the 2099 rows that match this query.
|||
Try to move the SDF file and the "temp path" to a storage card.
So your connection string would look something like:
"Data Source=\Storage Card\database.sdf;temp path=\Storage Card"
|||Thanks for the reply. But, simply fixing the database is not really the issue. I could do it on a different handheld (the HP) that just ships with more memory. Or, I imagine, on a desktop with the desktop version of SSCE. The real question is why I get corruption in the first place. And why on the Dell but not the HP, when as far as I can tell they are running the same OS & DB engine.Since my post yesterday we have culled the main database down to one that is is smaller (45k rows in the main table & 77k rows in the nickname index table.) This database is 20 mb with indexes. So far it has not shown corruption on the Dell.
The main reason that I'm hung up on the corruption issue (other than that it is annoying) is that we have a body of users who have these Dell handhelds and I'm supposed to build a release with this database to send to them. I would like some confirmation of good practices to avoid the corruption in the first place. Are there articles or forums who discuss the capacities and limitations of SSCE under WM5?
|||
Check your program memory, if it's too low it could crash. Happened to me many times, and it gives an empty exception message.
|||Thanks. I will look into that.Database corruption from simple query
In order to profile the responsiveness I worked up a test database with the general collection of fields we are interested in. The main table has 80,000 rows with one primary key and one of the numeric fields indexed. There is a 'nickname' table which contains about 150,000 items with just a string for a nickname and the key that nickname goes with. With all the rows and an alpha index for the nickname field the database is about 42 mb. Which is pushing the amount of storage on the handheld, but of our two models one is fine and one still has about 30 mb free with the DB on the handheld.
My problem seems to be that one kind of device can work with this database and one cannot. The device I was using the prototype the application is a HP iPAC hx2490b. On that device more than once I have corrupted the database, but not yet as a reproducible process.
My other device is a Dell Axim X51. On that device I seem to corrupt the database with very simple actions. Just now I tried a query like (From the Query Analyzer 3.0)
Code Snippet
Select * from ReagentNicknamesTable where alt_names like 'alpha%'
Which should hit 2099 of the 150,000 records. I got about 400 back and then the table was corrupted. On this device I cannot recover the database as there isn't enough disk space for two copies of the DB. So corruption in the field would be a showstopper. But getting corruption from a simple query like this means I really can't use SSCE.
This problem with the dell showed up when I was using the original device sql that came with VS2005. (SQL Server Mobile?) The cabs & dll's were dated from 2005 and had a build number of 3.0.5206.0. I have since updated to the current version of SQL Server Compact Edition and the dlls have build number 3.0.5300.0. The IDE is set to Compact Framwork 2.0, sp1: cgacutil reports CF 2.0.6129.0.
So help! Have I hit some listed or unlisted limits to SSCE on the Compact Framework? thanks.
So on the Dell handheld, I did a hard reset, redeployed everything and copied a fresh copy of the DB onto the handheld.
Running the above query from the QA yielded the same error. But this time I was able to copy the text before I moved on.
Here is the result:
400 row(s) affected
FAILED: Select * from ReagentNicknamesTable where alt_names like 'alpha%'
Error: 80004005 Unspecified error
Error: 0x80004005 E_FAIL
Native Error: (25017)
Description: The database file may be corrupted. Run the repair utility to check the database file. [,,,Database name,,]
Interface defining error: IID_IRowset
Param. 0: 0
Param. 1: 0
Param. 2: 0
Param. 3: My Documents\ChemistryLabacus\data\ReagentDatabase.sdf
Param. 4:
Param. 5:
Running this exact query on the HP iPAC yields the 2099 rows that match this query.
|||
Try to move the SDF file and the "temp path" to a storage card.
So your connection string would look something like:
"Data Source=\Storage Card\database.sdf;temp path=\Storage Card"
|||Thanks for the reply. But, simply fixing the database is not really the issue. I could do it on a different handheld (the HP) that just ships with more memory. Or, I imagine, on a desktop with the desktop version of SSCE. The real question is why I get corruption in the first place. And why on the Dell but not the HP, when as far as I can tell they are running the same OS & DB engine.Since my post yesterday we have culled the main database down to one that is is smaller (45k rows in the main table & 77k rows in the nickname index table.) This database is 20 mb with indexes. So far it has not shown corruption on the Dell.
The main reason that I'm hung up on the corruption issue (other than that it is annoying) is that we have a body of users who have these Dell handhelds and I'm supposed to build a release with this database to send to them. I would like some confirmation of good practices to avoid the corruption in the first place. Are there articles or forums who discuss the capacities and limitations of SSCE under WM5?
|||
Check your program memory, if it's too low it could crash. Happened to me many times, and it gives an empty exception message.
|||Thanks. I will look into that.Database Corruption (Please help!)
I created a nonclustered index on sysobjects table. After that, when I
create a new object and sysobjects is modified, the database does not work
properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
object is created, again database get corrupted (CHECKDB reports error). I
cannot drop this index with DROP INDEX command.
I'm wondered if an index on system table cannot be dropped, why it can be
created? If it is allowed to create index, why it corrupts the database?
Any help would be greatly appreciated.
Leila
Leila
First of all , go to the ERROR.LOG and see what is going on?
http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
"Leila" <Leilas@.hotpop.com> wrote in message
news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
> Hi,
> I created a nonclustered index on sysobjects table. After that, when I
> create a new object and sysobjects is modified, the database does not work
> properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
> object is created, again database get corrupted (CHECKDB reports error). I
> cannot drop this index with DROP INDEX command.
> I'm wondered if an index on system table cannot be dropped, why it can be
> created? If it is allowed to create index, why it corrupts the database?
> Any help would be greatly appreciated.
> Leila
>
|||I found this link but I don't know how to drop the index!
http://support.microsoft.com/kb/106122
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
> Leila
> First of all , go to the ERROR.LOG and see what is going on?
> http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
>
>
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>
|||Leila
There are pretty good examples telling how to do that
"Leila" <Leilas@.hotpop.com> wrote in message
news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>I found this link but I don't know how to drop the index!
> http://support.microsoft.com/kb/106122
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
>
|||But I didn't find any example about dropping an index in this article
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
> Leila
> There are pretty good examples telling how to do that
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>
|||It does not drop the index, it fixes the index ( perhaps by droping it)
:-)))) Do you have a good backup of the database?
"Leila" <Leilas@.hotpop.com> wrote in message
news:%23GS$VYdIHHA.536@.TK2MSFTNGP02.phx.gbl...
> But I didn't find any example about dropping an index in this article
>
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
>
|||We discovered this problem a little late. This exists in the database since
10 days ago. If we restore the backup before the corruption, 10 days of
users work will lost!
That article mentions that you can drop the index of system tables but I
couldn't find anything!
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eDZm7edIHHA.3424@.TK2MSFTNGP02.phx.gbl...
> It does not drop the index, it fixes the index ( perhaps by droping it)
> :-)))) Do you have a good backup of the database?
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23GS$VYdIHHA.536@.TK2MSFTNGP02.phx.gbl...
>
|||This option does not help
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23EandTgIHHA.3268@.TK2MSFTNGP04.phx.gbl...[vbcol=seagreen]
> You might be able to do it if you sp_configure 'allow updates'. Not sure,
> though.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
|||Leila (Leilas@.hotpop.com) writes:
> I created a nonclustered index on sysobjects table.
Uh-uh, never do that again, promise? :-)
> After that, when I create a new object and sysobjects is modified, the
> database does not work properly. I used DBCC CHECKDB to repair it. It
> works but as soon as a new object is created, again database get
> corrupted (CHECKDB reports error). I cannot drop this index with DROP
> INDEX command. I'm wondered if an index on system table cannot be
> dropped, why it can be created? If it is allowed to create index, why it
> corrupts the database?
It seems that you need to enable "Allow updates" to create an index on a
system table. With this setting all bets are off anyway.
I would recommend that you create a new database from scripts and bulk
data over.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
|||Perfect Match Finder
http://www.max-online.biz/idevaffiliate/idevaffiliate.php?id=804
Online Web Promotion
http://www.max-online.biz/idevaffiliate/idevaffiliate.php?id=804
For further details email me at maxonline.sunil@.gmail.com
Database Corruption (Please help!)
I created a nonclustered index on sysobjects table. After that, when I
create a new object and sysobjects is modified, the database does not work
properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
object is created, again database get corrupted (CHECKDB reports error). I
cannot drop this index with DROP INDEX command.
I'm wondered if an index on system table cannot be dropped, why it can be
created? If it is allowed to create index, why it corrupts the database?
Any help would be greatly appreciated.
LeilaLeila
First of all , go to the ERROR.LOG and see what is going on?
http://www.karaszi.com/SQLServer/in..._suspect_db.asp
"Leila" <Leilas@.hotpop.com> wrote in message
news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
> Hi,
> I created a nonclustered index on sysobjects table. After that, when I
> create a new object and sysobjects is modified, the database does not work
> properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
> object is created, again database get corrupted (CHECKDB reports error). I
> cannot drop this index with DROP INDEX command.
> I'm wondered if an index on system table cannot be dropped, why it can be
> created? If it is allowed to create index, why it corrupts the database?
> Any help would be greatly appreciated.
> Leila
>|||I found this link but I don't know how to drop the index!
http://support.microsoft.com/kb/106122
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
> Leila
> First of all , go to the ERROR.LOG and see what is going on?
> http://www.karaszi.com/SQLServer/in..._suspect_db.asp
>
>
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>|||Leila
There are pretty good examples telling how to do that
"Leila" <Leilas@.hotpop.com> wrote in message
news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>I found this link but I don't know how to drop the index!
> http://support.microsoft.com/kb/106122
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
>|||But I didn't find any example about dropping an index in this article
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
> Leila
> There are pretty good examples telling how to do that
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>|||It does not drop the index, it fixes the index ( perhaps by droping it)
:-)))) Do you have a good backup of the database?
"Leila" <Leilas@.hotpop.com> wrote in message
news:%23GS$VYdIHHA.536@.TK2MSFTNGP02.phx.gbl...
> But I didn't find any example about dropping an index in this article
>
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
>|||We discovered this problem a little late. This exists in the database since
10 days ago. If we restore the backup before the corruption, 10 days of
users work will lost!
That article mentions that you can drop the index of system tables but I
couldn't find anything!
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eDZm7edIHHA.3424@.TK2MSFTNGP02.phx.gbl...
> It does not drop the index, it fixes the index ( perhaps by droping it)
> :-)))) Do you have a good backup of the database?
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23GS$VYdIHHA.536@.TK2MSFTNGP02.phx.gbl...
>|||You might be able to do it if you sp_configure 'allow updates'. Not sure, th
ough.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Leila" <Leilas@.hotpop.com> wrote in message news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
> Hi,
> I created a nonclustered index on sysobjects table. After that, when I
> create a new object and sysobjects is modified, the database does not work
> properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
> object is created, again database get corrupted (CHECKDB reports error). I
> cannot drop this index with DROP INDEX command.
> I'm wondered if an index on system table cannot be dropped, why it can be
> created? If it is allowed to create index, why it corrupts the database?
> Any help would be greatly appreciated.
> Leila
>|||This option does not help
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23EandTgIHHA.3268@.TK2MSFTNGP04.phx.gbl...[vbcol=seagreen]
> You might be able to do it if you sp_configure 'allow updates'. Not sure,
> though.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...|||Leila (Leilas@.hotpop.com) writes:
> I created a nonclustered index on sysobjects table.
Uh-uh, never do that again, promise? :-)
> After that, when I create a new object and sysobjects is modified, the
> database does not work properly. I used DBCC CHECKDB to repair it. It
> works but as soon as a new object is created, again database get
> corrupted (CHECKDB reports error). I cannot drop this index with DROP
> INDEX command. I'm wondered if an index on system table cannot be
> dropped, why it can be created? If it is allowed to create index, why it
> corrupts the database?
It seems that you need to enable "Allow updates" to create an index on a
system table. With this setting all bets are off anyway.
I would recommend that you create a new database from scripts and bulk
data over.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx
Database Corruption (Please help!)
I created a nonclustered index on sysobjects table. After that, when I
create a new object and sysobjects is modified, the database does not work
properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
object is created, again database get corrupted (CHECKDB reports error). I
cannot drop this index with DROP INDEX command.
I'm wondered if an index on system table cannot be dropped, why it can be
created? If it is allowed to create index, why it corrupts the database?
I found this link:
http://support.microsoft.com/kb/106122
Although it mentions SP_FixIndex can drop such indexes but there are no description about it.
Any help would be greatly appreciated.
LeilaToday's lesson: "Don't f*** with system tables."|||Any solution?!..|||You may be able to drop the index if you run the SET OPTION command to allow changed to system objects.
Make sure you execute the command to disallow changes when you are done!|||It doesn't allow to drop index from system tables|||Did you try the SET OPTION command?
Otherwise, create a new blank database and copy your production tables to it, and then drop the old database with its corrupted system table.
Database Corruption (Please help!)
I created a nonclustered index on sysobjects table. After that, when I
create a new object and sysobjects is modified, the database does not work
properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
object is created, again database get corrupted (CHECKDB reports error). I
cannot drop this index with DROP INDEX command.
I'm wondered if an index on system table cannot be dropped, why it can be
created? If it is allowed to create index, why it corrupts the database?
Any help would be greatly appreciated.
LeilaLeila
First of all , go to the ERROR.LOG and see what is going on?
http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
"Leila" <Leilas@.hotpop.com> wrote in message
news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
> Hi,
> I created a nonclustered index on sysobjects table. After that, when I
> create a new object and sysobjects is modified, the database does not work
> properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
> object is created, again database get corrupted (CHECKDB reports error). I
> cannot drop this index with DROP INDEX command.
> I'm wondered if an index on system table cannot be dropped, why it can be
> created? If it is allowed to create index, why it corrupts the database?
> Any help would be greatly appreciated.
> Leila
>|||I found this link but I don't know how to drop the index!
http://support.microsoft.com/kb/106122
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
> Leila
> First of all , go to the ERROR.LOG and see what is going on?
> http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
>
>
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I created a nonclustered index on sysobjects table. After that, when I
>> create a new object and sysobjects is modified, the database does not
>> work properly. I used DBCC CHECKDB to repair it. It works but as soon as
>> a new object is created, again database get corrupted (CHECKDB reports
>> error). I cannot drop this index with DROP INDEX command.
>> I'm wondered if an index on system table cannot be dropped, why it can be
>> created? If it is allowed to create index, why it corrupts the database?
>> Any help would be greatly appreciated.
>> Leila
>|||Leila
There are pretty good examples telling how to do that
"Leila" <Leilas@.hotpop.com> wrote in message
news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>I found this link but I don't know how to drop the index!
> http://support.microsoft.com/kb/106122
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
>> Leila
>> First of all , go to the ERROR.LOG and see what is going on?
>> http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
>>
>>
>>
>> "Leila" <Leilas@.hotpop.com> wrote in message
>> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I created a nonclustered index on sysobjects table. After that, when I
>> create a new object and sysobjects is modified, the database does not
>> work properly. I used DBCC CHECKDB to repair it. It works but as soon as
>> a new object is created, again database get corrupted (CHECKDB reports
>> error). I cannot drop this index with DROP INDEX command.
>> I'm wondered if an index on system table cannot be dropped, why it can
>> be created? If it is allowed to create index, why it corrupts the
>> database?
>> Any help would be greatly appreciated.
>> Leila
>>
>|||But I didn't find any example about dropping an index in this article
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
> Leila
> There are pretty good examples telling how to do that
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>>I found this link but I don't know how to drop the index!
>> http://support.microsoft.com/kb/106122
>> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
>> Leila
>> First of all , go to the ERROR.LOG and see what is going on?
>> http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
>>
>>
>>
>> "Leila" <Leilas@.hotpop.com> wrote in message
>> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I created a nonclustered index on sysobjects table. After that, when I
>> create a new object and sysobjects is modified, the database does not
>> work properly. I used DBCC CHECKDB to repair it. It works but as soon
>> as a new object is created, again database get corrupted (CHECKDB
>> reports error). I cannot drop this index with DROP INDEX command.
>> I'm wondered if an index on system table cannot be dropped, why it can
>> be created? If it is allowed to create index, why it corrupts the
>> database?
>> Any help would be greatly appreciated.
>> Leila
>>
>>
>|||It does not drop the index, it fixes the index ( perhaps by droping it)
:-)))) Do you have a good backup of the database?
"Leila" <Leilas@.hotpop.com> wrote in message
news:%23GS$VYdIHHA.536@.TK2MSFTNGP02.phx.gbl...
> But I didn't find any example about dropping an index in this article
>
> "Uri Dimant" <urid@.iscar.co.il> wrote in message
> news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
>> Leila
>> There are pretty good examples telling how to do that
>>
>> "Leila" <Leilas@.hotpop.com> wrote in message
>> news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>>I found this link but I don't know how to drop the index!
>> http://support.microsoft.com/kb/106122
>> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
>> Leila
>> First of all , go to the ERROR.LOG and see what is going on?
>> http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
>>
>>
>>
>> "Leila" <Leilas@.hotpop.com> wrote in message
>> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I created a nonclustered index on sysobjects table. After that, when I
>> create a new object and sysobjects is modified, the database does not
>> work properly. I used DBCC CHECKDB to repair it. It works but as soon
>> as a new object is created, again database get corrupted (CHECKDB
>> reports error). I cannot drop this index with DROP INDEX command.
>> I'm wondered if an index on system table cannot be dropped, why it can
>> be created? If it is allowed to create index, why it corrupts the
>> database?
>> Any help would be greatly appreciated.
>> Leila
>>
>>
>>
>|||We discovered this problem a little late. This exists in the database since
10 days ago. If we restore the backup before the corruption, 10 days of
users work will lost!
That article mentions that you can drop the index of system tables but I
couldn't find anything!
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:eDZm7edIHHA.3424@.TK2MSFTNGP02.phx.gbl...
> It does not drop the index, it fixes the index ( perhaps by droping it)
> :-)))) Do you have a good backup of the database?
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23GS$VYdIHHA.536@.TK2MSFTNGP02.phx.gbl...
>> But I didn't find any example about dropping an index in this article
>>
>> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> news:uZQr3VdIHHA.2456@.TK2MSFTNGP06.phx.gbl...
>> Leila
>> There are pretty good examples telling how to do that
>>
>> "Leila" <Leilas@.hotpop.com> wrote in message
>> news:%238EDYTdIHHA.1468@.TK2MSFTNGP04.phx.gbl...
>>I found this link but I don't know how to drop the index!
>> http://support.microsoft.com/kb/106122
>> "Uri Dimant" <urid@.iscar.co.il> wrote in message
>> news:eAUl4QdIHHA.3872@.TK2MSFTNGP06.phx.gbl...
>> Leila
>> First of all , go to the ERROR.LOG and see what is going on?
>> http://www.karaszi.com/SQLServer/info_corrupt_suspect_db.asp
>>
>>
>>
>> "Leila" <Leilas@.hotpop.com> wrote in message
>> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I created a nonclustered index on sysobjects table. After that, when
>> I create a new object and sysobjects is modified, the database does
>> not work properly. I used DBCC CHECKDB to repair it. It works but as
>> soon as a new object is created, again database get corrupted
>> (CHECKDB reports error). I cannot drop this index with DROP INDEX
>> command.
>> I'm wondered if an index on system table cannot be dropped, why it
>> can be created? If it is allowed to create index, why it corrupts the
>> database?
>> Any help would be greatly appreciated.
>> Leila
>>
>>
>>
>>
>|||You might be able to do it if you sp_configure 'allow updates'. Not sure, though.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Leila" <Leilas@.hotpop.com> wrote in message news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
> Hi,
> I created a nonclustered index on sysobjects table. After that, when I
> create a new object and sysobjects is modified, the database does not work
> properly. I used DBCC CHECKDB to repair it. It works but as soon as a new
> object is created, again database get corrupted (CHECKDB reports error). I
> cannot drop this index with DROP INDEX command.
> I'm wondered if an index on system table cannot be dropped, why it can be
> created? If it is allowed to create index, why it corrupts the database?
> Any help would be greatly appreciated.
> Leila
>|||This option does not help :(
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23EandTgIHHA.3268@.TK2MSFTNGP04.phx.gbl...
> You might be able to do it if you sp_configure 'allow updates'. Not sure,
> though.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Leila" <Leilas@.hotpop.com> wrote in message
> news:%23z2JEMdIHHA.1248@.TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I created a nonclustered index on sysobjects table. After that, when I
>> create a new object and sysobjects is modified, the database does not
>> work properly. I used DBCC CHECKDB to repair it. It works but as soon as
>> a new object is created, again database get corrupted (CHECKDB reports
>> error). I cannot drop this index with DROP INDEX command.
>> I'm wondered if an index on system table cannot be dropped, why it can be
>> created? If it is allowed to create index, why it corrupts the database?
>> Any help would be greatly appreciated.
>> Leila|||Leila (Leilas@.hotpop.com) writes:
> I created a nonclustered index on sysobjects table.
Uh-uh, never do that again, promise? :-)
> After that, when I create a new object and sysobjects is modified, the
> database does not work properly. I used DBCC CHECKDB to repair it. It
> works but as soon as a new object is created, again database get
> corrupted (CHECKDB reports error). I cannot drop this index with DROP
> INDEX command. I'm wondered if an index on system table cannot be
> dropped, why it can be created? If it is allowed to create index, why it
> corrupts the database?
It seems that you need to enable "Allow updates" to create an index on a
system table. With this setting all bets are off anyway.
I would recommend that you create a new database from scripts and bulk
data over.
--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx|||Perfect Match Finder
http://www.max-online.biz/idevaffiliate/idevaffiliate.php?id=804
Online Web Promotion
http://www.max-online.biz/idevaffiliate/idevaffiliate.php?id=804
For further details email me at maxonline.sunil@.gmail.com
Database corruption
How to check if a database is corrupted, and how to fix the corruption? Thanks.
ZYTDBCC CHECKDB will give you some info on your data, DBCC CHECKCATALOG will report on system-related objects' problems of your db. I'm still using DBCC NEWALLOC from 6.5 world to actually fix any allocation-related issues. The last command reports AND fixes at the same time.
Database corruption
The error 8510 can indicate a database corruption ? And
error 3437 ? (Error 8510, Severity: 20, State :1).
Thank you very much.
DanielThe 8510 error message is considered unnecessary because
the state of the transaction is already aborted or
committed before the error message occurs.
The 8510 error message occurs when two (2) SQL Server
SPIDs are working on behalf of the same MS DTC
transaction. One of the SPIDs is completing a successful
abort or commit operation. The second SPID is attempting
to re-enlist or reset the connection state. The reset is
generally associated with connection pooling operations.
The second SPID incorrectly looks for the MS DTC
transaction and encounters the 8510 error message when it
can no longer locate the transaction by a globally unique
identifier (GUID) because it was aborted or committed
successfully.
For error 3437:
There are 3 ways we can resolve the transaction. We used
the 2nd option (II) to
resolve the issue. We made sure to stop SQL Server
services and MSDTC. We
restarted MSDTC and then used the command line arguments
to start SQL, details
bellow:
I) To resolve the problem transactions using the MSDTC
Administrative Console.
1) On Windows NT server, you can invoke that by
running DAC.EXE from Start\
Run. Then under Transactions tab, right click the
transaction, and select
Resolve.
2) On Windows 2000, follow the below steps:
a. Open the MMC Console by typing MMC.exe in the Run
dialog box.
b. In the MMC console dialog box, click Console, and
then click Add/Remove
Snap-in.
c. In the Add/Remove Snap-in dialog box, click Add.
d. In the Add Standalone Snap-in dialog box, click
Component Services, and then
click ADD to add the snap-in. Click Close.
e. In the Add/Remove Snap-in dialog box, click OK.
f. In the console root under Component Services,
expand Component Services,
point to Computers, point to My Computer, and then click
Distributed
Transaction Coordinator.
g. Select Transaction List. The right window will
show the transactions. Right
click the transaction, and select Resolve. Now there are 3
options. Commit,
Abort or Forget.
We tried selecting from the resolve menu these options and
got the error:
Abort - the transaction cannot be forced to abort or
commit because the
transaction state is not ?in doubt?.
Forget - either the transaction is not committed or the
are resource managers
or subordinate MSDTC transaction managers still connected.
II) As the dB is receiving error 3437 during recovery, is
to start SQL Server
under a trace flag from the command prompt, as follows:
sqlservr -c -m -T3421 -T3605
You will be prompted for each transaction in the prepared
state and will be
able to manually commit or rollback the transaction as
desired. In my case we
opted to rollback the transactions.
See the section "Manually Resolving Transactions" in Books
Online for more
details on the ramifications of manually resolving
transactions.
After resolving the transaction, you can stop the server
from the command
prompt by clicking CTRL+C.
III) Use the KILL command passing the Unit of Work ID
(UOW) value. So we should
use
KILL UOW WITH { COMMIT | ROLLBACK }
This posting is provided "AS IS" with no warranties, and
confers no rights.
http://www.microsoft.com/info/cpyright.htm
>--Original Message--
> Good morning.
> The error 8510 can indicate a database corruption ? And
>error 3437 ? (Error 8510, Severity: 20, State :1).
>
>Thank you very much.
>Daniel
>.
>|||Thank you very very very much!
Regards.
Daniel
>--Original Message--
>The 8510 error message is considered unnecessary because
>the state of the transaction is already aborted or
>committed before the error message occurs.
>
>The 8510 error message occurs when two (2) SQL Server
>SPIDs are working on behalf of the same MS DTC
>transaction. One of the SPIDs is completing a successful
>abort or commit operation. The second SPID is attempting
>to re-enlist or reset the connection state. The reset is
>generally associated with connection pooling operations.
>The second SPID incorrectly looks for the MS DTC
>transaction and encounters the 8510 error message when it
>can no longer locate the transaction by a globally unique
>identifier (GUID) because it was aborted or committed
>successfully.
>For error 3437:
>There are 3 ways we can resolve the transaction. We used
>the 2nd option (II) to
>resolve the issue. We made sure to stop SQL Server
>services and MSDTC. We
>restarted MSDTC and then used the command line arguments
>to start SQL, details
>bellow:
>
>I) To resolve the problem transactions using the MSDTC
>Administrative Console.
>1) On Windows NT server, you can invoke that by
>running DAC.EXE from Start\
>Run. Then under Transactions tab, right click the
>transaction, and select
>Resolve.
>2) On Windows 2000, follow the below steps:
>a. Open the MMC Console by typing MMC.exe in the Run
>dialog box.
>b. In the MMC console dialog box, click Console, and
>then click Add/Remove
>Snap-in.
>c. In the Add/Remove Snap-in dialog box, click Add.
>d. In the Add Standalone Snap-in dialog box, click
>Component Services, and then
>click ADD to add the snap-in. Click Close.
>e. In the Add/Remove Snap-in dialog box, click OK.
>f. In the console root under Component Services,
>expand Component Services,
>point to Computers, point to My Computer, and then click
>Distributed
>Transaction Coordinator.
>g. Select Transaction List. The right window will
>show the transactions. Right
>click the transaction, and select Resolve. Now there are
3
>options. Commit,
>Abort or Forget.
>
>We tried selecting from the resolve menu these options
and
>got the error:
>Abort - the transaction cannot be forced to abort or
>commit because the
>transaction state is not ?in doubt?.
>Forget - either the transaction is not committed or the
>are resource managers
>or subordinate MSDTC transaction managers still
connected.
>
>II) As the dB is receiving error 3437 during recovery, is
>to start SQL Server
>under a trace flag from the command prompt, as follows:
>sqlservr -c -m -T3421 -T3605
>You will be prompted for each transaction in the prepared
>state and will be
>able to manually commit or rollback the transaction as
>desired. In my case we
>opted to rollback the transactions.
>See the section "Manually Resolving Transactions" in
Books
>Online for more
>details on the ramifications of manually resolving
>transactions.
>After resolving the transaction, you can stop the server
>from the command
>prompt by clicking CTRL+C.
>
>III) Use the KILL command passing the Unit of Work ID
>(UOW) value. So we should
>use
>KILL UOW WITH { COMMIT | ROLLBACK }
>
>This posting is provided "AS IS" with no warranties, and
>confers no rights.
>http://www.microsoft.com/info/cpyright.htm
>>--Original Message--
>> Good morning.
>> The error 8510 can indicate a database corruption ? And
>>error 3437 ? (Error 8510, Severity: 20, State :1).
>>
>>Thank you very much.
>>Daniel
>>.
>.
>
database corruption
I just ran into a big trouble with sqlserver 2005 Express and Visual Basic
2005.
I have a database, wich is an upsize of an AccessXp database, worked until
now perfect with Vb net 2003
I upgraded to Vb2005 for learning purposes an ran into the following
trouble.
1. Opening a database connection in the server explorer and viewing the
tablestructure etc. works ok BUT...
2. Closing the connection corrupts the db!!
Reopening is impssible and the mdf and ldf files are doubled in size!
The only sollution is then complelety removing both files from the HD and
restoring a backup
All the above is also true for the db's like Pubs or Northwind. After making
a connection in server explorer and closing the IDE, the db's are corrupt
and inaccesible by whatever program.
The connection provider is the one suggested by VB2005 for sqlserver Express
: slqlient for local database
With another sqlprovider it even refuse to find the server
This all happens exclusiveli in the "server explorer", a compiled prog or
debugging from within the IDE works perfect.
If i do the same in VB2003 to the same database and server then everything
stays ok
Any suggestion will be appreciated
Thanks in advance
JeromeWhen connecting to a msde server or even the local sqlexpress via the normal
sqlconnection all runs ok.
Only when connecting via the native provider for sqlexpress the database
becomes corrupt
Just wanted to add that the software runs on a dutch version of wndows XP
regards
Jerome
"Jerome" <Jommeke@.fake.com> schreef in bericht
news:xp%hf.57683$tB5.3726394@.phobos.telenet-ops.be...
> Hi,
> I just ran into a big trouble with sqlserver 2005 Express and Visual Basic
> 2005.
> I have a database, wich is an upsize of an AccessXp database, worked until
> now perfect with Vb net 2003
> I upgraded to Vb2005 for learning purposes an ran into the following
> trouble.
> 1. Opening a database connection in the server explorer and viewing the
> tablestructure etc. works ok BUT...
> 2. Closing the connection corrupts the db!!
> Reopening is impssible and the mdf and ldf files are doubled in size!
> The only sollution is then complelety removing both files from the HD and
> restoring a backup
> All the above is also true for the db's like Pubs or Northwind. After
> making a connection in server explorer and closing the IDE, the db's are
> corrupt and inaccesible by whatever program.
> The connection provider is the one suggested by VB2005 for sqlserver
> Express : slqlient for local database
> With another sqlprovider it even refuse to find the server
> This all happens exclusiveli in the "server explorer", a compiled prog or
> debugging from within the IDE works perfect.
> If i do the same in VB2003 to the same database and server then everything
> stays ok
> Any suggestion will be appreciated
> Thanks in advance
> Jerome
>
>
database corruption
I just ran into a big trouble with sqlserver 2005 Express and Visual Basic
2005.
I have a database, wich is an upsize of an AccessXp database, worked until
now perfect with Vb net 2003
I upgraded to Vb2005 for learning purposes an ran into the following
trouble.
1. Opening a database connection in the server explorer and viewing the
tablestructure etc. works ok BUT...
2. Closing the connection corrupts the db!!
Reopening is impssible and the mdf and ldf files are doubled in size!
The only sollution is then complelety removing both files from the HD and
restoring a backup
All the above is also true for the db's like Pubs or Northwind. After making
a connection in server explorer and closing the IDE, the db's are corrupt
and inaccesible by whatever program.
The connection provider is the one suggested by VB2005 for sqlserver Express
: slqlient for local database
With another sqlprovider it even refuse to find the server
This all happens exclusiveli in the "server explorer", a compiled prog or
debugging from within the IDE works perfect.
If i do the same in VB2003 to the same database and server then everything
stays ok
Any suggestion will be appreciated
Thanks in advance
Jerome
When connecting to a msde server or even the local sqlexpress via the normal
sqlconnection all runs ok.
Only when connecting via the native provider for sqlexpress the database
becomes corrupt
Just wanted to add that the software runs on a dutch version of wndows XP
regards
Jerome
"Jerome" <Jommeke@.fake.com> schreef in bericht
news:xp%hf.57683$tB5.3726394@.phobos.telenet-ops.be...
> Hi,
> I just ran into a big trouble with sqlserver 2005 Express and Visual Basic
> 2005.
> I have a database, wich is an upsize of an AccessXp database, worked until
> now perfect with Vb net 2003
> I upgraded to Vb2005 for learning purposes an ran into the following
> trouble.
> 1. Opening a database connection in the server explorer and viewing the
> tablestructure etc. works ok BUT...
> 2. Closing the connection corrupts the db!!
> Reopening is impssible and the mdf and ldf files are doubled in size!
> The only sollution is then complelety removing both files from the HD and
> restoring a backup
> All the above is also true for the db's like Pubs or Northwind. After
> making a connection in server explorer and closing the IDE, the db's are
> corrupt and inaccesible by whatever program.
> The connection provider is the one suggested by VB2005 for sqlserver
> Express : slqlient for local database
> With another sqlprovider it even refuse to find the server
> This all happens exclusiveli in the "server explorer", a compiled prog or
> debugging from within the IDE works perfect.
> If i do the same in VB2003 to the same database and server then everything
> stays ok
> Any suggestion will be appreciated
> Thanks in advance
> Jerome
>
>
database corruption
I just ran into a big trouble with sqlserver 2005 Express and Visual Basic
2005.
I have a database, wich is an upsize of an AccessXp database, worked until
now perfect with Vb net 2003
I upgraded to Vb2005 for learning purposes an ran into the following
trouble.
1. Opening a database connection in the server explorer and viewing the
tablestructure etc. works ok BUT...
2. Closing the connection corrupts the db!!
Reopening is impssible and the mdf and ldf files are doubled in size!
The only sollution is then complelety removing both files from the HD and
restoring a backup
All the above is also true for the db's like Pubs or Northwind. After making
a connection in server explorer and closing the IDE, the db's are corrupt
and inaccesible by whatever program.
The connection provider is the one suggested by VB2005 for sqlserver Express
: slqlient for local database
With another sqlprovider it even refuse to find the server
This all happens exclusiveli in the "server explorer", a compiled prog or
debugging from within the IDE works perfect.
If i do the same in VB2003 to the same database and server then everything
stays ok
Any suggestion will be appreciated
Thanks in advance
JeromeWhen connecting to a msde server or even the local sqlexpress via the normal
sqlconnection all runs ok.
Only when connecting via the native provider for sqlexpress the database
becomes corrupt
Just wanted to add that the software runs on a dutch version of wndows XP
regards
Jerome
"Jerome" <Jommeke@.fake.com> schreef in bericht
news:xp%hf.57683$tB5.3726394@.phobos.telenet-ops.be...
> Hi,
> I just ran into a big trouble with sqlserver 2005 Express and Visual Basic
> 2005.
> I have a database, wich is an upsize of an AccessXp database, worked until
> now perfect with Vb net 2003
> I upgraded to Vb2005 for learning purposes an ran into the following
> trouble.
> 1. Opening a database connection in the server explorer and viewing the
> tablestructure etc. works ok BUT...
> 2. Closing the connection corrupts the db!!
> Reopening is impssible and the mdf and ldf files are doubled in size!
> The only sollution is then complelety removing both files from the HD and
> restoring a backup
> All the above is also true for the db's like Pubs or Northwind. After
> making a connection in server explorer and closing the IDE, the db's are
> corrupt and inaccesible by whatever program.
> The connection provider is the one suggested by VB2005 for sqlserver
> Express : slqlient for local database
> With another sqlprovider it even refuse to find the server
> This all happens exclusiveli in the "server explorer", a compiled prog or
> debugging from within the IDE works perfect.
> If i do the same in VB2003 to the same database and server then everything
> stays ok
> Any suggestion will be appreciated
> Thanks in advance
> Jerome
>
>