Viewing 11 posts - 31 through 41 (of 41 total)
Thank you very much for your help. I only have a very basic understanding of CTEs but I'm sure I will be able to puzzle out exactly what's happening...
February 26, 2010 at 5:46 pm
Thank you for pointing out proper posting etiquette. I had not seen that article before and I apologize.
IF OBJECT_ID('TempDB..#InterestRates','U') IS NOT NULL ...
February 26, 2010 at 11:42 am
Your script is correct and that is a good way to do deletes when you need to reference values in another table to find your records.
February 25, 2010 at 6:18 pm
Yes I make a remote call to execute the stored procedure that is on the server where the data is housed. Thanks again.
January 27, 2010 at 1:34 pm
Piotr, your script worked beautifully and dropped the runtime down from 4.5 hours to 4.5 minutes. Thank you very much. I took a look at how a sliding...
January 27, 2010 at 9:31 am
There are no foreign key constraints or triggers. The table has one clustered index on the date field.
January 26, 2010 at 3:03 pm
No go last night, I forgot to enable RPC on the remoter server. I'm going to enable it now and I will post the results tommorow. BTW thanks...
January 26, 2010 at 9:24 am
The setting of the SET ROWCOUNT option is ignored for INSERT, UPDATE, and DELETE statements against remote tables and local and remote partitioned views. If I moved the stored...
January 25, 2010 at 3:21 pm
Thanks for the tip. Turns out the account running the delete doesn't have the appropriate permissions to access statistics. I've made that change and I will report back...
January 25, 2010 at 12:11 pm
So I added a clustered index to the datetime field and that brought the runtime down from 10 hours to 5 hours. This is acceptable since it now isn't...
January 21, 2010 at 9:57 am
The reason it is run from a different server is because before we delete all this data, we pull it over to an archive database. Once the archive is...
January 20, 2010 at 10:49 am
Viewing 11 posts - 31 through 41 (of 41 total)