Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

Automatically deleted records from the sql server 2000 on my window server

Hi
 i need help on this please i used to be around 1150 records in my one table in the sql server 2000 on my window server next day i saw this they were around 530,
So plz tell be how this is happened  and also solution for this..
I not even deleted those records neither anyone else.....

SO please reply me  with the reason and also solution..
And whether shud i use stored procedures instead of inline queries to overcome this problem.???  
0
highlander_1969
Asked:
highlander_1969
1 Solution
 
rdhoore108Commented:
Records do not delete themselves, they are deleted only as the result of a query (through software or by an operator), or by deleting them manually through the database manager interface.

Most likely someone has entered a query that did not limit the scope of their action enough.

You may want to set up a schedule of nightly backups, so that you do have backups of your database. Backups are so very important, as you have unfortunately found out the hard way.

0
 
SagiEDocCommented:
If you are using a web interface to connect to the database someone could have used a SQL injection to remove the records. To overcome this you would need to rewrite all your SQL querries to run at the server and not be passed via the address bar of the remote browser.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now