Strategey to Delete Millions/Move millions of rows in a database

Hello,
I am using SQL Server 2012 SE.
I am trying to delete rows from a couple of tables (GetPersonValue has 250 million rows and I am trying to delete 50Million rows and GetPerson has 35 Million rows and I am trying to delete 20 million rows). These tables are in TX replication.The plan is to
delete data older than 400 days old.
I tried to move data to new tables from the last 400 days and it took me like 11 hours. If I delete data in chunks of 500000 then its taking a long time to rebuild indexes(delete plus rebuild indexes 13 hours). 
Since I am using standard edition partition wont work.
Is there a way to speed up things? Experts I need your valuable inputs.
Please find ddl below:
GO
CREATE TABLE [dbo].[GetPerson](
[GetPersonId] [uniqueidentifier] NOT NULL,
[LinedActivityPersonId] [uniqueidentifier] NOT NULL,
[CTName] [nvarchar](100) NULL,
[SNum] [nvarchar](50) NULL,
[PHPrimary] [nvarchar](50) NULL,
[PHAlt1] [nvarchar](50) NULL,
[PHAlt2] [nvarchar](50) NULL,
[EAdd] [nvarchar](50) NULL,
[ImportedAt] [datetime] NOT NULL,
[LinedActivityId] [uniqueidentifier] NOT NULL,
[Order] [int] NOT NULL,
[PHAssName] [varchar](255) NULL,
[TXAssName] [varchar](255) NULL,
[EMAssName] [varchar](255) NULL,
CONSTRAINT [PK_GetPerson] PRIMARY KEY NONCLUSTERED
[GetPersonId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[GetPersonValue](
[GetPersonValueId] [uniqueidentifier] NOT NULL,
[GetPersonId] [uniqueidentifier] NOT NULL,
[ValueDefId] [uniqueidentifier] NULL,
[ValueDefName] [nvarchar](50) NULL,
[ValueListItemId] [uniqueidentifier] NULL,
[Value] [nvarchar](max) NULL,
CONSTRAINT [PK_GetPersonValue] PRIMARY KEY NONCLUSTERED
[GetPersonValueId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[LinedActivity] Script Date: 4/16/2015 10:30:38 AM ******/
GO
CREATE TABLE [dbo].[LinedActivity](
[LinedActivityId] [uniqueidentifier] NOT NULL,
[AccountTriggerId] [uniqueidentifier] NOT NULL,
[LinedActivityStatusId] [int] NOT NULL,
[QueuedAt] [datetime] NOT NULL,
[LastUpdatedAt] [datetime] NULL,
[IsLiveMode] [bit] NOT NULL,
[PHJobId] [uniqueidentifier] NULL,
[EMJobId] [uniqueidentifier] NULL,
[TXJobId] [uniqueidentifier] NULL,
[NotificationTemplateId] [uniqueidentifier] NULL,
[Size] [int] NOT NULL,
[ResultsExported] [bit] NOT NULL,
[JobCompletedEMSent] [bit] NOT NULL,
[SubStatusId] [int] NULL,
CONSTRAINT [PK_JobQueue] PRIMARY KEY NONCLUSTERED
[LinedActivityId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
GO
/****** Object: Index [IX_GetPerson_LinedActivityId] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_GetPerson_LinedActivityId] ON [dbo].[GetPerson]
[LinedActivityId] ASC
INCLUDE ( [GetPersonId],
[LinedActivityPersonId],
[CTName],
[SNum],
[PHPrimary],
[PHAlt1],
[PHAlt2],
[EAdd],
[ImportedAt],
[Order],
[PHAssName],
[TXAssName],
[EMAssName]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object: Index [IX_GetPerson_LinedActivityPerson] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_GetPerson_LinedActivityPerson] ON [dbo].[GetPerson]
[LinedActivityPersonId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
GO
/****** Object: Index [IX_GetPerson_LinedActivityPersonId_GetPersonId] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_GetPerson_LinedActivityPersonId_GetPersonId] ON [dbo].[GetPerson]
[LinedActivityPersonId] ASC,
[GetPersonId] ASC
INCLUDE ( [CTName],
[SNum],
[PHPrimary],
[PHAlt1],
[PHAlt2],
[EAdd],
[ImportedAt]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
GO
/****** Object: Index [IX_GetPersonValue_GetPersonId_GetPersonValueId] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_GetPersonValue_GetPersonId_GetPersonValueId] ON [dbo].[GetPersonValue]
[GetPersonId] ASC,
[GetPersonValueId] ASC
INCLUDE ( [ValueDefId],
[ValueDefName],
[ValueListItemId],
[Value]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
/****** Object: Index [IX_LinedActivity_1] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_LinedActivity_1] ON [dbo].[LinedActivity]
[LinedActivityStatusId] ASC,
[IsLiveMode] ASC
INCLUDE ( [LinedActivityId],
[AccountTriggerId],
[QueuedAt],
[LastUpdatedAt],
[PHJobId],
[EMJobId],
[TXJobId],
[NotificationTemplateId],
[Size],
[ResultsExported],
[JobCompletedEMSent]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object: Index [IX_LinedActivity_2] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_LinedActivity_2] ON [dbo].[LinedActivity]
[AccountTriggerId] ASC,
[LinedActivityStatusId] ASC,
[ResultsExported] ASC
INCLUDE ( [LinedActivityId],
[QueuedAt],
[LastUpdatedAt],
[IsLiveMode],
[PHJobId],
[EMJobId],
[TXJobId],
[NotificationTemplateId],
[Size],
[JobCompletedEMSent]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object: Index [IX_LinedActivity_3] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_LinedActivity_3] ON [dbo].[LinedActivity]
[LinedActivityStatusId] ASC,
[ResultsExported] ASC
INCLUDE ( [LinedActivityId],
[AccountTriggerId],
[QueuedAt],
[LastUpdatedAt],
[IsLiveMode],
[PHJobId],
[EMJobId],
[TXJobId],
[NotificationTemplateId],
[Size],
[JobCompletedEMSent]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object: Index [IX_LinedActivity_IL_QJSID_ATID_QJID_QAT_LU_PJID_EJID_SJID_NTID_S_New] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_LinedActivity_IL_QJSID_ATID_QJID_QAT_LU_PJID_EJID_SJID_NTID_S_New] ON [dbo].[LinedActivity]
[IsLiveMode] ASC,
[LinedActivityStatusId] ASC,
[AccountTriggerId] ASC,
[LinedActivityId] ASC,
[QueuedAt] ASC,
[LastUpdatedAt] ASC,
[PHJobId] ASC,
[EMJobId] ASC,
[TXJobId] ASC,
[NotificationTemplateId] ASC,
[Size] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
GO
/****** Object: Index [IX_LinedActivity_NotificationTemplateID_TXJOBID] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_LinedActivity_NotificationTemplateID_TXJOBID] ON [dbo].[LinedActivity]
[NotificationTemplateId] ASC
INCLUDE ( [TXJobId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
/****** Object: Index [IX_LinedActivity_LinedActivityID_New] Script Date: 4/16/2015 10:30:38 AM ******/
CREATE NONCLUSTERED INDEX [IX_LinedActivity_LinedActivityID_New] ON [dbo].[LinedActivity]
[LinedActivityId] ASC
INCLUDE ( [QueuedAt]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
ALTER TABLE [dbo].[GetPerson] ADD DEFAULT ((0)) FOR [Order]
GO
ALTER TABLE [dbo].[LinedActivity] ADD CONSTRAINT [DF_LinedActivity_IsLiveMode] DEFAULT ((0)) FOR [IsLiveMode]
GO
ALTER TABLE [dbo].[LinedActivity] ADD CONSTRAINT [DF_LinedActivity_SubmittedJobID] DEFAULT (CONVERT([uniqueidentifier],CONVERT([binary],(0),(0)),(0))) FOR [PHJobId]
GO
ALTER TABLE [dbo].[LinedActivity] ADD DEFAULT ((0)) FOR [Size]
GO
ALTER TABLE [dbo].[LinedActivity] ADD DEFAULT ((0)) FOR [ResultsExported]
GO
ALTER TABLE [dbo].[LinedActivity] ADD DEFAULT ((0)) FOR [JobCompletedEMSent]
GO
ALTER TABLE [dbo].[GetPerson] WITH CHECK ADD CONSTRAINT [FK_GetPerson_LinedActivity] FOREIGN KEY([LinedActivityId])
REFERENCES [dbo].[LinedActivity] ([LinedActivityId])
GO
ALTER TABLE [dbo].[GetPerson] CHECK CONSTRAINT [FK_GetPerson_LinedActivity]
GO
ALTER TABLE [dbo].[GetPersonValue] WITH CHECK ADD CONSTRAINT [FK_GetPersonValue_GetPerson] FOREIGN KEY([GetPersonId])
REFERENCES [dbo].[GetPerson] ([GetPersonId])
GO
ALTER TABLE [dbo].[GetPersonValue] CHECK CONSTRAINT [FK_GetPersonValue_GetPerson]
GO
Here is my delete statement:
select A.GetPersonValueid,B.GetPersonID into temp_table
From GetPersonValue A inner Join GetPerson B
on A.GetPersonid =B.GetPersonID inner join LinedActivity C
on B.LinedActivityId = C.LinedActivityID and C.QueuedAt >Getdate()-400
delete from GetPersonValue where GetPersonValueid in (select GetPersonValueid from temp_table)
delete from GetPerson where GetPersonid in (select GetPersonid from temp_table)
drop table temp_table
ALTER INDEX ALL ON GetPersonValue REBUILD WITH (FILLFACTOR = 80)
ALTER INDEX ALL ON GetPerson REBUILD WITH (FILLFACTOR = 80)
Experts I need your valuable inputs here. Thanks a ton in advance.

From the code you posted, none of the tables have clustered indexes.  If that is correct, the first thing you need to do is create one.
This should be a little faster, much faster if you add a clustered index.
select B.GetPersonID
into temp_table
From GetPersonValue A inner Join GetPerson B
on A.GetPersonid =B.GetPersonID inner join LinedActivity C
on B.LinedActivityId = C.LinedActivityID and C.QueuedAt >Getdate()-400
CREATE CLUSTERED INDEX [IX_temp_table] ON [dbo].[temp_table]
[GetPersonID] ASC
DECLARE @rowcnt INT;
SET @rowcnt = 1;
WHILE @rowcnt > 0
BEGIN
delete TOP (50000) a
from GetPersonValue a
INNER JOIN temp_table t
ON t.GetPersonId = a.GetPersonId;
SET @rowcnt = @@ROWCOUNT;
END
SET @rowcnt = 1;
WHILE @rowcnt > 0
BEGIN
delete TOP (50000) a
from GetPerson a
INNER JOIN temp_table t
ON t.GetPersonId = a.GetPersonId;
 SET @rowcnt = @@ROWCOUNT;END
drop table temp_table;
If i delete based of top n rows there is a chance of getting a foreign key violation error when deleting from the GetPerson table.

Similar Messages

  • Playing movies through front row from ext HD

    I recently bought Lacie HD firewire 800 1 terabyte and was thinking of loading all my movie files into the new HD and run from it. I've tried aliasing in movies directory in my Imac main HD but it still taking up space in my main HD. Can anyone help ?

    I use Front Row to play movies from a different hard drive. Put the movies (they can be organized in sub-folders) in a folder on the external drive and Command-Option-drag that folder to the Movies folder in your home folder. When you choose "Movies" in Front Row, select "Movies Folder", then the folder on the external drive.
    If the movies are still using space on your boot drive, it means you didn't delete them from the boot drive (and empty the trash) after copying them to the external drive.

  • How do I delete a movie from my iPhone 5s

    How do I delete a movie from my iPhone 5s.  I have tried swiping it to get a delete message, but it's not working.  Help!

    HI,
    is it a movie you have shot yourself or is it one you have downloaded?
    if it's a download then you need to uninstall via iTunes, just uncheck the movie and then sync,
    if it is one you have shot yourself then :
    Tap select top right: tap the video you want to delete: tap the bin.
    good luck and hope this helps.

  • How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well?

    How do I delete a movie (not bought from iTunes) and have it actually deleted from the library as well, I keep deleting stuff from iTunes to try and free up some space only to find the file still in the library?

    It depends upon what preferences settings you use.  Most people use default settings so when you delete an item it asks you if you want to get rid of the file too.
    If iTunes absolutely refuses to get rid of the file (I have never heard of this by the way) you can always go to the media folder or wherever the file is located and drag it to the trash yourself.

  • HT5772 How do you delete a movie from a local computer without deleting it from the library?  This should be such a simple procedure, but it's not. And while we're at it, why is iTunes NOT one of the dropdown product choices?

    All Apple support says about deleting movies from a computer is that you "should" be able to re-download it if you live in the right area.  Well, I'm in the U.S.A. and just deleted one of the movie extra features exactly as described in the support directions.  According to Apple I should be able to re-download this from the cloud at any time, but now I no longer even see the title listed.  That's why I wanted to test their support statements with a Movie Extra instedad of a real movie.  This should be the simplest of tasks to manage, yet they make it extremely difficult.  Why?  I own the movies and I want them to stay in my iTunes library basically forever.  Makes sense, right?  But, I only have so much room on my laptop to store movies that I want to have with me on long trips, etc.  So if I only have the space to store 3 or 4 movies on the disk, shouldn't I have the ability to every once in a while delete one of those movies from my local computer ONLY, NOT my library, so that I can download a different movie?  Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.  So why does support say you can download again any time from the cloud then?  The worse part is, the calamity doesnt stop there.  Wait until you see the message you actually get once you say that yes, you do want to delete the movie (but only because you assume that you really can download it again sometime).  Here is the exact 2 messages you get from Apple, in the same popup box.
    Do you want to move the selected movie to the Recycle Bin, or keep it in the iTunes Media Folder?
    Only files in the iTunes Media Folder will be moved to the Recycle Bin.
    [Cancel]  [Move to the Recycle Bin]  [Keep File]
    Is that the most confusing popup or what?  Who develops this kind of software?!?!?! 
    I have tried it both ways and the only difference is that the file shows up in the Recycle Bin or doesn't.  But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.  Better hey, if I clicked "Keep File", where is it?  I can't see it anywhere, so where is it kept and what can I actually do with it?
    I have to be honest, I love my iPhone and some of the neat features, but when it comes to iTunes, I have never seen a more difficult piece of software to use in my life... and I'm a software developer.  Your Support documentation is actually more confusing than the softwae itself, it's almost as if you don't want people to use the software, just simply buy stuff and listen/watch it, but nothing else.  Seriously, this is the most cumbersome, unfriendly piece of software I've ever seen.  What does it say about Apple iTunes when everyone has to google solutions for how to do something rather than using Apple support documentation.
    Seriously disappointed in Apple iTunes and it's never really gotten any better over time.  This is one of the primary reasons I have never moved all of my recording studios and office operations over to an Apple platform.  Hardware and phones are awesome, but your software is either grossly incompetent or intentionally designed to make it all but impossible to use.  Either way, it's worthless to me. We're talking about software that does nothing else but manage media that I already own on multiple devices.  That should be one of the simplest things in the world to do.  Sad... very sad.
    While we're at it.... why isn't iTunes listed on the product dropdown below?  Maybe it's not even considered a product, which would explain it's goofiness I guess.

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • What happens to the conversation when you delete or move a message?

    I've always been a bit unclear what happens to other message in a thread/conversation when you delete or move the current message you are reading.
    Therre are 3 relevant view settings it seems:
    Organize by conversation (turned on).
    Display selected message only (not selected - why would one want to select this if organizing by conversation? Is there a use for that?)
    Show/Hide related messages (turned on so I can see replies I sent in the conversation).
    If I want to move the current message I'm reading, it seems to move the entire conversation to the target folder. But that's not what I want to do.
    Yet if I delete the current message I think it only deletes that one message.
    I'm a bit confused about how to think of this. Sometimes I see messages show up under "related messages" that are a year old that I thought I long deleted.
    Any easy way of thinking about how this is all working?
    Thanks,
    doug

    After using deauthorize all you need to authorize any computer that you wish to use to manage content on the device or unauthorized & protected content will be removed next time you make any changes to the content on the device.
    tt2

  • How do I deleted a movie from an iDVD project

    I created an iDVD project using a movie, and have decided to go back into iMovie and make changes to the movie I am using for this project. Since I have put so much time into putting photos and music in submenus, I want to use the same project I created, just replace the old movie with the new. I cannot figure out how to delete the old movie from the project. I have shared the new one thru Media Browser, and it is ready to be added, but I first need to delete the prior version from the iDVD project.
    Anyone know how to do this? Thanks.

    READ THE ENTIRE MESSAGE BEFORE DELETING ANYTHING !!!
    To delete a movie from iDVD: Open iDVD. Click once on the movie title to highlight it. Hit Delete. It should disappear in a poof of smoke.
    If you have chapters in your movie, you need to delete the Scene Selection text button also.
    But, when you reopen iDVD after changing your movie, before doing anything in iDVD, iDVD should give you a message that your 'assets have changed' and ask if you want iDVD to update. Click on yes/ok, but check your iDVD project before burning. The way it is supposed to work is that iDVD recognizes that you have made changes to your iMovie, uses the revised iMovie in its files instead of the first one, and uses the updated iMovie when you burn to disk or create a disk image. It is a nice feature so that you do not have to delete the iMovie already in iDVD and have to put in your updated newer version; iDVD is supposed to add the update itself, using the newer version of iMovie. It worked that way in iDVD 6.
    However, if you have an iMovie with chapters, what happens with iDVD 8/9, as opposed to iDVD 6, is that iDVD does indeed recognize the changes and sends the 'do you want to update' message, but if you tell iDVD to go ahead and update, the chapters will no longer select correctly. They all will default to the same chapter no matter which one is selected.
    I can't tell you whether or not iDVD will correctly play the updated movie if you don't have chapters. You will just have to try it.
    If you do have chapters and/or incorporating the changes in iMovie does not work, the only 'fix' is to recreate the iDVD project. It takes time but is not difficult since you have done it once. Open a new iDVD project and put the updated iMovie into it. Do a "Save as Disk Image" to create a disk image file of your iDVD project. Play the disk image file with DVD Player. If it plays correctly, burn your disks from the disk image file using Disk Utility or Toast. You can delete the old iDVD project.
    Good luck with it!

  • How do I delete a movie from the iTunes-cloud?

    How do I delete a movie from the iTunes-cloud? I don't want to hide it I want to delete it even if it means I can't download it again..

    Oh sure you can delete it from the computer. I thought that you wanted to permanently delete it so that you can never access it again. In fact, in some countries, you can delete movies and then download that again at no charge as long as you use the same Apple ID.
    Launch iTunes on your computer and click on the movies tab under the Library heading, find the movie and right click on it and select Delete.

  • My friend synced a video to my ipod but it erased all my data on my ipod,but i cant figure out how to load my old libray back without deleting the movie. my friend cant tell me the password. How can I get my old library back without deleting the movie?

    My friend synced a video to my ipod but it earased all my data on my ipod,but I can't figure out how to load my old library back without deleting the movie. My friend shares a family account so she can't tell me the password. How can i get my old library back without deleting the movie?

    Linnwarner wrote:
    She does have the right because she bought the movie.
    Not true at all.
    You only buy the right to your own personal use.
    You do NOT have the right to distribute to others.
    This is illegal.  There is no doubt about it

  • How can I delete a movie from my iphone?

    How can I delete a movie from my iphone?

    Under iOS 7, in the Videos app with Movies selected sekect the Edit button at the top right. An X will be available on the movie to select to delete.

  • Getting error while deleting rows from the database using the View Object

    Hi All,
    I am using jdev 11.1.1.4.0. I am removing the rows from the database using viewobject( quering the viewobject to find the records i want to delete).
    I am using vo.removeCurrentRow(0). Before this statement I am able to get the rows I want to delete.
    after that i am doing am.transaction.commit(). But I am getting the error..
    javax.faces.el.EvaluationException: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: oracle.jbo.DMLException: JBO-26080: Error while selecting entity for CriteriaEO
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1117)
         at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:553)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8134)
         at oracle.jbo.server.EntityImpl.lock(EntityImpl.java:5863)
         at oracle.jbo.server.EntityImpl.beforePost(EntityImpl.java:6369)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6551)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3275)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3078)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2088)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2369)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         ... 53 more
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:869)
    Please give suggestions...
    Thanks
    Kanika

    Hi,
    First Run Application module and confirm whether model project is OK,Cause for the Error is Caused by: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long
    check:
    Issues with table/column name length
    identifier is too long
    I guess following error occurred because above issue
    JBO-26080: DMLException
    Cause: An unexpected exception occurred while executing the SQL to fetch data for an entity instance or lock it.
    Action: Fix the cause for the SQLException in the details of this exception.
    See:
    http://download.oracle.com/docs/cd/A97337_01/ias102_otn/buslog.102/bc4j/jboerrormessages.html#26080Hope you will helpful

  • Deleting a row from a database...

    Here is the method I am calling to delete a row from a database. I keep getting this error, but I am not sure why.
    Error: "Too few parameters. Expected 1."
    //To delete a row
      public void removeRow(String x, String y) {
       try {
       Statement stmt = con.createStatement();
       //delete row with same x and y
    //first is a string and second is a number
       String query = "DELETE * FROM table WHERE first = '" +x+ "' AND " +
       "second = " +Integer.parseInt(y);
       int result = stmt.executeUpdate(query); //runs delete query, ERROR HERE *************
       System.out.println("Test"); //debug statement, never gets here
       //deletion confirmation message
       JOptionPane.showMessageDialog(null, "Row deleted",
       "Delete Reservation", JOptionPane.INFORMATION_MESSAGE);
          catch (Exception e) { System.out.println(e); }

    Additionally, in the future you might want to use:
    catch(SQLException sqlx) {
      System.out.println( sqlx.getSQLState()
                                       +"\t"+sqlx.getMessage()
                                       +"\t"+sqlx.getErrorCode() );... It'll help with diagnostics.
    ☺Bill

  • HT4915 How to permanently delete a movie from iCloud, so that it can no longer be accessed (not simply hidden)?

    I am looking to remove items from the hidden folder in my iTunes account.
    There is a solution for deleting music, however, a different prompt screen when deleting a movie does not provide the same solution.
    Following is the prompt when deleting a movies
    1st - "Are you sure you want to delete the selected movie from your iTunes library?"
    This movie will also be deleted from any iPod, iPhone, or iPad which synchronizes with your iTunes library. ( - ) Do not ask me again.
    2nd - "Do you want to move the selected movie (which was downloaded from the iTunes Store) to the Trash, or keep it in the iTunes Media folder?"
    Only files in the iTunes Media folder will be moved to the Trash. (Keep File) (Move to Trash)

    Movies are not stored in iCloud. That's the reason you get a different prompt.
    When you delete a movie from iTunes the 1st. option above is on instances where you have the same movie in other mobile devices.
    2nd. option allow you to delete the movie either from iTunes list (Keep File) only or remove from your computer completely (Move to Trash) and from the iTunes too.
    Now, if you purchase a movie from iTune Store you can safetely delete it from your computer (Move to Trash option) and stream it later. (Check this link for how to: http://support.apple.com/kb/ht2519.)
    Let me know if this help to answer your question.

  • Iphoto: How to safely delete or move photos.  I have over 7000 photos.  When I deleted some, I found that the event still shows up with a blank frame.  Can I move some photos to an external hard drive but leave the pointer in iphoto?

    iphoto: How to safely delete or move photos.  I have over 7000 photos.  I would really like to move tsome of the older photos to an external hard drive. (They are backed up in Time Machine, but I like the immediacy of having them available.)  So question 1 -  is it possible to split the iphoto library so that the directory tree points to an external drive in some cases?  And if that doesn't work--I am willing to export and delete some of these photos.  However, an earlier delete left me with events that have a name in the event folder, but no photos.  Question 2 -- How do I properly delete photos so that all references disappear?
    example:

    Warning: Time Machine is not an Archiving application. It keeps rolling back ups. That means if you delete something from the source Mac it will eventually be also deleted from Time Machine. How long that takes depends on the amount of disk space TM has. So, remember, backing up in Time Machine is not the same as Archiving.
    For the blank thumbnails: This can happen if you try delete too many photos at one go. Experienced users suggest you should delete in batches of 100 or so.
    Yes you can split the Library, where some of the Masters are stored locally and some on an external disk, but really, you don't want to do that. iPhoto's file management tools are limited at best, and if the path to the files changes then you could find yourself repairing the links to the files - all of them, one by one.
    Better: Have your entire Library on an External Drive.
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you want to have a smaller library on your internal disk:
    Here's one way to do what you want:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using iPhoto Library Manager
    Regards
    TD

  • How do I delete a movie that is downloading

    I was downloading a movie and it's taking longer than expected, not to mention it's eating up my data. I have turned off my data and it's now downloading thru Wi-Fi. At this point I just want to delete the movie completely, how do I delete movie while it's downloading?

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    -Download on computer and sync tand then delete
    - Restore from backup and then delet if necessary.See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

Maybe you are looking for

  • SharePoint Foundation 2013 error after March 2013 PU

    Hi all! i have SharePoint Foundation 2013, install March 2013 PU but now i can't edit webpart pages that have a search webpart. Then i install the SP1 too, but the issue continue. Any idea? I read about the SP1 problem, but i installed the lasted upd

  • Exit Button not working in ESS

    Hi All, We have configured ESS in our landscape. When I go to any Overview/Edit/Review Page (in W-4 Tax, Add/Change dependents etc..), the Exit button which is present is not working. When I click the Exit button, it doesn't exit the current view,  b

  • HT4673 Accidentially deleted an app and can't reinstall

    MacBook Pro late 2011. Accidentally DELETED the app TEMPERATURE GAUGE. Logged in to the App Store and tried following these directions:  If you want to reinstall a deleted app, open Mac App Store, click the  Purchases icon, then click on the "Install

  • Wireless connection drops after bout 5 min - HP all in one C6180

    Hi! I'm having problem with my all in one product - HP all in one C6180. The wireless network connection drops, and the printer becomes unreachable from both web-interface and printjobs/scanningjobs etc... This problem has existed since I bought this

  • Support of structural authorizations in IdM?

    I am currently working on an IdM implementation where structural authorizations are handled individually on the various backend systems. Would it be possible to implement a mechanism that would allow IdM to distribute privileges that in the backend s