dbTalk Databases Forums  

DTS package to purge database

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS package to purge database in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Randy Gill
 
Posts: n/a

Default DTS package to purge database - 07-10-2003 , 01:47 PM






I am trying to purge a database of data over 13 months
old. I can easily move the old data to an archive table
and the new data to a transfer table. Management wants
the table dropped and recreated before transfering the
data back so indexing can be recreated and any other
problems removed. I created a script to drop and
recreate the database in EM and pasted it into a SQL Task
in DTS. The problem is that the package does not
recreate the users in the database and the domains users
suddenly have no rights to the new database. Any ideas
on how to get around this small problem? Why doesn't the
SQL script from EM create users in the new database with
rights matching their rights in the dropped database?

Randy

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS package to purge database - 07-11-2003 , 01:42 AM






The scripting facility in EM will recreate users in the DB and their object
level permissions.

Last tab (Options)

I do not know why you need to drop and recreate the tables to achieve your
aim here. You can issue reindex statements after removing the records.

--


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Randy Gill" <rgill (AT) sumitomotrustusa (DOT) com> wrote

Quote:
I am trying to purge a database of data over 13 months
old. I can easily move the old data to an archive table
and the new data to a transfer table. Management wants
the table dropped and recreated before transfering the
data back so indexing can be recreated and any other
problems removed. I created a script to drop and
recreate the database in EM and pasted it into a SQL Task
in DTS. The problem is that the package does not
recreate the users in the database and the domains users
suddenly have no rights to the new database. Any ideas
on how to get around this small problem? Why doesn't the
SQL script from EM create users in the new database with
rights matching their rights in the dropped database?

Randy



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.