Viewing 15 posts - 1,531 through 1,545 (of 1,583 total)
The question should have started with "In SQL Server 2005..." as Powershell is NOT an option in 2005.
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 24, 2011 at 1:58 pm
You could try this:
Usage:
SELECT dbo.fx_SplitColumnText('rptclientrifvdistrictgrantstatuschangelog_MillmanR_9dfb3dfa-081b-48d1-8bbf-81361bbd9cb9', '_', 1)
Returns:
rptclientrifvdistrictgrantstatuschangelog
TSQL:
(You'll have to format this yourself)
USE [F1Settings]
GO
/****** Object: UserDefinedFunction [dbo].[fx_SplitColumnText] Script Date: 03/23/2011 13:40:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/*...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 23, 2011 at 12:44 pm
Under the advanced tab in Job Step properties, can't you set the On Faiilure Action to "Go to the Next Step?" The last step of course needs to be...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 21, 2011 at 12:57 pm
Oliii, the bcp process finally completed and here was the "running results"
Current server - bcp for 20,547,681 records, 812.57 mins @422 rows/sec.
I tested it on the new server I'm eventually...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 18, 2011 at 11:30 am
Thanks Brandie, but I didn't go with that method, I actually opted for bcp....like so:
bcp " select * from dw_load.dbo.DW_Fleet_Load_Progress with(readuncommitted) where [pos-date] >= DATEADD(mm, -12, GETDATE()) " queryout...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 18, 2011 at 11:25 am
Yes, I wish I had honed in on using the /b flag before I ran this last night...now everything's running as one giant transaction and God on ly knows how...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 18, 2011 at 10:27 am
I ran out of space yesterday evening when all the rebuilding was running so it failed and went into a lovely 3 hour rollback process. When I first ran...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 18, 2011 at 8:39 am
"If you have enough space on another drive (or another server) do a bcp queryout (only the rows you need to keep), truncate your table and bcp in. No need...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 17, 2011 at 3:59 pm
I have very little experience with partitioning...could you provide me with some good links on either instructional videos or good articles so I can learn about it more quickly?
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 17, 2011 at 7:11 am
Thanks for the tips! I have exceeded my maintenance window for tonight but will try this tomorrow afternoon once corporate reporting has finished for the day
How about an actual...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 16, 2011 at 11:44 pm
Oops, great questions...sorry I forgot to include more relevant information
* How long is "FOREVER"?
- 33 minutes to delete about 290,000 records (a long way to 13+ million)
* Is...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 16, 2011 at 10:33 pm
This appears to be the closest thing I can find:
SELECT IndexName = name,
IndexSizeMB = CEILING(1.0 * dpages / 128),
...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 16, 2011 at 3:40 pm
Easiest thing is doing what Gail mentioned.
I give Full Bkp's a .zip ext, Diff's .bak, Log's .trn, and don't use filegroup but am pretty certain any 3-char extension would work...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 16, 2011 at 10:19 am
Maechismo_8514, I have a question about your comment "the pages would be loaded to the memory anyway"
I typically REORG fragmented indexes that are > 50 pages or more because in...
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 15, 2011 at 11:02 am
Thanks again for all your help! Much appreciated it.
______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience
March 14, 2011 at 9:16 pm
Viewing 15 posts - 1,531 through 1,545 (of 1,583 total)