Quantcast
Channel: Questions in topic: "delete"
Browsing all 63 articles
Browse latest View live

where clause in delete statement with two conditions

I need to delete distinct recordIDs from EntryAttribute table where the record is tagged with two options (attributeid = '513367ff-de82-4f84-b982-8c4b854a08e1' and...

View Article



Deleting 10+ million records from a database table

Hi Guys, I am in a dilemma where I have to delete data from a table older than 6 months. The data in there goes back to about 4 years and is a total of 1.8 billion rows. I have designed a DELETE...

View Article

Purging MOSS DB, auditdata table in SQL

Hi, There is MOSS database (ContentDB) which contains auditdata table of 150GB size and one million rows. This table has a column with datatype ntext. A delete command is fired from sharepoint side...

View Article

started sql server

Hi I have a table where I am getting 150 millon rows every day. What sp should i write so that all records after 90 days get deleted. Could somebody help me in it(script).And how will I schedule it so...

View Article

Lock Table, When Disabling, On Delete Triggers

Hello all, Id like to ask if I need to lock tables when I am disabling triggers in my script. I've got a script that deletes records from multiple tables. At the top of the script I am disabling all...

View Article


Script to delete Huge set of records from a table

Hi, I am facing issue in order to delete a huge number of records from one table where the criteria will deal with single field for different conditions. I am here to attach the query that i have to...

View Article

Ghosts in the Machine

Today's SSC QOTD (SQL Server Central Question of the Day) was about Ghost records. A deleted record is not necessarily deleted (reminding me of FoxPro by the way). So, how does the SQL engine mark...

View Article

Deleting millions of rows

I was wondering if I can get some pointers on the strategies involved in deleting large amounts of rows from a table. The table is a highly transactional table in a OLTP environment and we need to...

View Article


Delete data from sql table

I want to delete data from table because of i donot require it.But i want to delete old data from table.Means i want to delete data date wise.

View Article


Is it possible rollback data after deleting data on table of SQL Server...

1. Is it possible rollback data after deleting data on SQL Server Database table ? 2. What are the options to get back the data? 3. Is there any tools to get back the data ? 4. Similar like in ORACLE...

View Article

delete query hang in sql server 2005

we have a sql server 2005 database(Detailed version: Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86) Nov 24 2008 13:01:59 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on...

View Article

Best approach to delete first 5 million rows from a heap in batches

The subject is pretty self explanatory. But what we want is to keep the size of the log file minimal with optimum performance. I am not sure whether it is possible as there is no clustered index and...

View Article

I need to delete a file from one particular path.

Hi, My job is automate the trace for our customer. so, i will start the trace automatically through a schedule job. This job will save a trace in the particular path Eg:...

View Article


How to Write single proc for all operations?

I want to write Single stored proc for Insert,delete and update statements.Can you please help me?

View Article

how to delete a job in SQL server 2005

I created multiple maintenance plans to perform backups, the backup plans were not needed in the frequency i created them in, when the plan was created it created a job or sub plan also, i deleted the...

View Article


Compare values in SSIS tables

hi, I have mn name workweek in a table i want to compare the value of current workweek with the max of workweek and if they are equal i need to delete the data from the same table in SSIS...,Hii,...

View Article

XML with Merge statement - Problem with deleting dependent tables data deletion

Hi, I'm working with XML formatted input data and using Merge statement. My intention is to completely make use of XML & Merge only. I need to insert/update/delete parent & dependent child...

View Article


How to modify a stored procedure

I need to alter a stored procedure to check another table, return a number, calculate that number as # of days back, and delete all rows prior to that # of days back based off of a date. This is the...

View Article

Reclaim space after deleting large amounts of data - SQL 2008

Hi all We are busy with a archive process whereby we are deleting millions of records from our transaction tables, and moving the data to archive tables with triggers. The Archive tables are located on...

View Article

database delete

Hi, I am trying to bring our production DB down, right now we are on 480 GB. We started a delete process, every day in the morning and slowly its going down. But i have a few problems: when i check up...

View Article
Browsing all 63 articles
Browse latest View live




Latest Images