dbTalk Databases Forums  

Re: package fails to execute task after database restore

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


Discuss Re: package fails to execute task after database restore in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: package fails to execute task after database restore - 05-13-2004 , 10:48 AM






By "Never get committed" what do you mean?

Do you have orphaned users in the restored DB? These will be visible either

EM - Look in users and they are the ones with no login name
QA - Exec sp_change_users_login 'Report'



--
--

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


"Shawn" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a package that does a database backup and restore. Once the
restore task completes, I have a task that adds users to the newly restored
database. This task executes and package logs show it executes
successfully, but the sql statements in the task never get committed. It
doesn't seem to matter what sql I have in there - it doesn't work.
Quote:
Any ideas as to why this may be happening?

Thanks!



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

Default Re: package fails to execute task after database restore - 05-13-2004 , 01:10 PM






Ok so what does happen in QA when you issue a query against the DB?

--
--

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


"Shawn" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Good idea, but it isn't an orphaned users problem. I can't get any
commands to run after the restore task. Querries, set options, nothing.




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.