Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 1,584 total)

  • RE: Issue with BCP import data back into table

    If I remove -c then I have to supply the datatype individually for every column...which in the case of this table is well over 950 columns!!! Is there an...

  • RE: SQL Server Job Steps

    The question should have started with "In SQL Server 2005..." as Powershell is NOT an option in 2005.

  • RE: Need Records from strings

    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

    /*...

  • RE: Monitoring Jobs

    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...

  • RE: Deleting a large amount of data from a table

    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...

  • RE: Deleting a large amount of data from a table

    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...

  • RE: Deleting a large amount of data from a table

    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...

  • RE: Deleting a large amount of data from a table

    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...

  • RE: Deleting a large amount of data from a table

    "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...

  • RE: Deleting a large amount of data from a table

    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?

  • RE: Deleting a large amount of data from a table

    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...

  • RE: Deleting a large amount of data from a table

    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...

  • RE: SQL 2008 Object Explorer Details information

    This appears to be the closest thing I can find:

    SELECT IndexName = name,

    IndexSizeMB = CEILING(1.0 * dpages / 128),

    ...

  • RE: How to identify backup files?

    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...

  • RE: How and when we need to rebuild indexes, reorganise indexes , defragindexes

    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...

Viewing 15 posts - 1,531 through 1,545 (of 1,584 total)