Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 SQL for dummies - how to edit and delete from db
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

taropatch
Average Member

USA
741 Posts

Posted - 04 April 2005 :  16:50:14  Show Profile
I use Access for my snitz db; but recently, I started using a product that archives my company's email using a SQL database.

There is a whole lot of SPAM being archived so I want to go into the database to delete out all the junk. I used SQL Server Enterprise Manager to see if I could access the database like I would in Access and delete the fields that I do not want. I can't figure out how to do this. Does SQL just not work this way?

Appreciate any guidance.

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 04 April 2005 :  18:12:19  Show Profile
SQL Server Enterprise Manager can return all rows of a table and you can delete them that way, but would it not be just as easy to just run a script that you could run against the DB to delete certian types of e-mails or e-mail addresses?

To bring up the rows in the DB via SQL Server Enterprise Manager, simply:
1. Open SQL Server Enterprise Manager
2. Open your server
3. Go to the Databases
4. Select your database that has the data to remove
5. Go to tables that store the data to remove
6. Then find the field that contians the information you want to delete
7. Right click on the table
8. Select "OPen Tables"
9. Then select "Return all rows"
10. When finished, close SQL Server Enterprise Manager and you are done

Sorry if I put it in real simple forum, but if there are others who need to know as well, then might as well make it as easy as possible.

Side note is that I will not be responsible for the loss of data thet you want to keep as you need to be fully careful when deleting data, that it is the data that you want to delete.

I hope this helps.

All the rows will show up and then you can delete each row on their own, or you could select a group of rows and simply press your delete key. You need to be careful not to delete stuff you want to keep as it will not come back.

Cheers,

David Greening
Go to Top of Page

taropatch
Average Member

USA
741 Posts

Posted - 05 April 2005 :  00:17:19  Show Profile
quote:
Sorry if I put it in real simple forum, but if there are others who need to know as well, then might as well make it as easy as possible.
Thanks David. I needed it as simply put as possible and you did just that.

I took a look at the db fields and it sounds straight forward enough. I just need to better understand the db structure and which fields I need to delete before I go wreaking havoc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07