Forum Replies Created

Viewing 15 posts - 136 through 150 (of 476 total)

  • RE: Data Migration Techniques

    It might help to create VIEWs on old tables, with the column names for the new tables. Then you can

    INSERT INTO NewTable

    SELECT NewColumn1, NewColumn2, ...

    FROM NewViewOnOldTable

    If the mapping is...

  • RE: Better way of finding date?

    Don't think DATEFROMPARTS() was available in SQL 2008? but for later versions I would use

    DECLARE @StartDate DATE = '01/01/15';

    SELECT DATEFROMPARTS(YEAR(@StartDate)-1, 11, 6);

    which avoids all the ambiguity of "nn/nn/nn" style string...

  • RE: Starting to get tired of all the spam on the forums !!!!

    I've mentioned before, but my view is that more modern forum software is required - not just for SPAM but many things that would bring benefit to regular posters and...

  • RE: SQL Server chnages

    Ah, OK. So for example a Month End routine is done in the APP and the backup needs to be at that exact moment in time.

    This is a bit of...

  • RE: Staging Database vs. Staging Schema within the DW

    Interesting point, and I can see how reducing data volume would improve performance.

    For us, we concentrate on only transferring rows that have changed. Network transmission time is our slowest component...

  • RE: SQL Server chnages

    Why do you need to prevent changes during the backup? The backup will be transactionally complete, regardless of whether there are changes made during the backup, or not.

    If you...

  • RE: Staging Database vs. Staging Schema within the DW

    Jayanth_Kurup (10/25/2015)


    not sure if the flexibility afforded by bringing in columns that one day might be useful offsets the storage and performance overhead of all the rows and columns that...

  • RE: Staging Database vs. Staging Schema within the DW

    Jayanth_Kurup (10/25/2015)


    xsevensinzx (10/24/2015)


    A staging table is where the TRANSFORM happen in ETL process , it is never meant to be backed up.

    In our case we only transfer new-since-last-time data. This...

  • RE: Post Replies

    I CUT my reply, press BACK, press QUOTE and then PASTE my reply into that box.

    I press the [+] at the right end of the "Last 10 Posts In Descending...

  • RE: Auto deployment of SQL scripts

    We do have Source Control, but each SProc / Trigger / View is in a separate file, so perhaps similar to your "Attached to tickets or on a fileshare"

    We have...

  • RE: Serious Hacking

    I found this article interesting, it shows some stats for how data breaches were much larger than originally estimated / reported

    http://qz.com/517649/never-trust-the-first-number-announced-in-a-data-breach/[/url]

  • RE: Query on a large database

    Sergiy (10/19/2015)


    Make sure you have a clustered index on "record date time" column.

    I would only re-create a clustered index if there isn't one already - any existing clustered index...

  • RE: Casting/converting date time stored as text

    david 70530 (10/19/2015)


    How can I make it convert the ones it can't and just leave the others blank or skip them?

    update hourly

    set date_time= try_parse(date_time_txt as datetime2)

    -- WHERE NullIf(date_time_txt, '') IS...

  • RE: Deleting large batches of rows - optimum batch size?

    Eric M Russell (10/19/2015)


    it's indicative of poor ETL processing or poor data modeling. I mean, why insert something and then delete it?

    Pah!

    We have Archive tables on almost every table in...

  • RE: Deleting large batches of rows - optimum batch size?

    Lynn Pettis (10/19/2015)


    If deleting 90% of a table, SELECT * INTO to create a temporary table of data to retain, build the appropriate indexes on the temporary table, truncate the...

Viewing 15 posts - 136 through 150 (of 476 total)