SQL Server Data Archiving

I am wondering if there is a quick simple method of archiving partial data from a sql server db? Is the easiest method via scripting or is there another more direct method? Yes I am new to DBA methods. Any help greatly appreciated.
[232 byte] By [TonyH] at [2007-12-17]
# 1
Do you mean data from some tables when you say partial data or only some rows from a table? There are many ways to do this. Look at BCP utility for starters. This allows you to create a text/binary file with data from a table or query or result from a stored procedure.
# 2
I am trying to delete some rows from tables based on certain criteria and am not very good with scripts
TonyH at 2007-9-9 > top of Msdn Tech,SQL Server,Transact-SQL...
# 3
Look at the DELETE statement in Books Online. For example, if you have a date column in the table you can do:
delete tbl
where datecol < '2005-09-07'
Note that DELETE removes the data from the table/database so you cannot retrieve it back without having a backup of the database. The command-line options for BCP utility is also present in Books Online. With that utility you can backup the data before deleting or you can use traditional database backup/recovery mechanisms.

SQL Server

Site Classified