![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We are running SQL 7 with a front end that links to the tables through ODBC. In our main table, the user has no way to delete a record through the interface, though it is possible to delete it by opening the ODBC link. Users would have no reason to delete a record, but one of our records turned up missing. Now, it's possible that a user may have accidentally deleted the record. But, since users don't have any reason to delete records, and since they don't access the ODBC links, it seems unlikely (though possible). I was wondering if anyone had every heard of SQL Server ever "losing" a record that had previously been saved. I checked the nightly backup from the night after it was added, and the record was there. So either a user deleted it, or somehow it got lost in SQL Server. I have no code that deletes records in this table in any way, shape or form, so it couldn't have been malfunctioning code. So, while I have a hard time believing that SQL Server would just "lose" a record, I also know that anything's possible, so I thought I'd ask if anyone had ever heard of such a thing. Thanks! Neil |
#3
| |||
| |||
|
|
We are running SQL 7 with a front end that links to the tables through ODBC. In our main table, the user has no way to delete a record through the interface, though it is possible to delete it by opening the ODBC link. Users would have no reason to delete a record, but one of our records turned up missing. Now, it's possible that a user may have accidentally deleted the record. But, since users don't have any reason to delete records, and since they don't access the ODBC links, it seems unlikely (though possible). I was wondering if anyone had every heard of SQL Server ever "losing" a record that had previously been saved. I checked the nightly backup from the night after it was added, and the record was there. So either a user deleted it, or somehow it got lost in SQL Server. I have no code that deletes records in this table in any way, shape or form, so it couldn't have been malfunctioning code. So, while I have a hard time believing that SQL Server would just "lose" a record, I also know that anything's possible, so I thought I'd ask if anyone had ever heard of such a thing. Thanks! Neil |
#4
| |||
| |||
|
|
So, while I have a hard time believing that SQL Server would just "lose" a record, I also know that anything's possible, so I thought I'd ask if anyone had ever heard of such a thing. |
#5
| |||
| |||
|
|
Never heard of it. Revoke delete permissions from all your users. Add a trigger prohibiting any deletes. |
#6
| |||
| |||
|
|
Neil (nospam (AT) nospam (DOT) net) writes: So, while I have a hard time believing that SQL Server would just "lose" a record, I also know that anything's possible, so I thought I'd ask if anyone had ever heard of such a thing. Well, I have lost rows, but that was a on a system where no one was looking at the event log or the DBCC logs, and finally the database broke down, with several levels of corruption. As Roy said, run DBCC. If it comes up with corruption, then that may be the answer. But I'm prepared to place my bets that there was a human involved. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#7
| |||
| |||
|
|
Never heard of it. Revoke delete permissions from all your users. Add a trigger prohibiting any deletes. If I add a trigger prohibiting any deletes, then it wouldn't be possible for me to go in and delete a record if I ever needed to, right? Or is there a way to set up a trigger so that it can allow the delete in some cases? Thanks. |
#8
| |||
| |||
|
|
I'm not familiar with DBCC. Can you point me in the right direction? |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |