Forum Replies Created

Viewing 15 posts - 61 through 75 (of 148 total)

  • RE: Convert IIF to Case Statements and Instr to charindex or Like

    In the absence of test data here is my spin on it

    DECLARE @Client_Domains TABLE

    (

    Client_VndName NVARCHAR(100) ,

    ...

  • RE: Convert IIF to Case Statements and Instr to charindex or Like

    Can you provide some sample data and expected output for this please? In the middle of giving it a go now 🙂

  • RE: Update records in table..

    ByronOne (3/7/2014)


    Thanks everyone, particulalrly Michael, you guys have saved my bacon!!

    BO:-D

    No worries. Glad to have helped

  • RE: Update records in table..

    dbalmf (3/7/2014)


    Hi Michael, your solution is much more elegant than mine.. And quicker.. 🙂

    Thanks :blush:

  • RE: Update records in table..

    dbalmf (3/7/2014)


    I would do this:

    Create a backup of your table, because backup is your friend.. 🙂

    Select all archive rows into a temp table

    Update the rows in the temp table with...

  • RE: Update records in table..

    Rough and ready. Customers matched on customer ID and where have Type 'Archive' will be updated with details from 'Recent' This also assumes that only one 'Recent' entry...

  • RE: Update records in table..

    Can we assume where 2 records exist for a customer we take the 'Recent' type to update the 'Archive' type when different? Is there only even one recent type...

  • RE: How to fast reinstatement new data and objects on a copy of a irreparable database

    Whilst not my area of expertise I do have a couple of questions:

    If the database has failed and you cannot repair and data will be written to the old database...

  • RE: SSIS Script Text

    It does yes but we get round this by writing a custom query to create the headers and add that as part of the BCP script

  • RE: SSIS Script Text

    Depending on the volume of data we generally go for BCP when exporting data from a table to CSV. This give great flexibility generating the file name on the...

  • RE: script error

    This is likely to do with what Gail has mentioned already. Your database collation is case sensitive and as such anywhere you use the variable from the point of...

  • RE: script error

    GilaMonster (2/24/2014)


    michael.higgins (2/24/2014)


    GilaMonster (2/24/2014)


    michael.higgins (2/24/2014)


    Here is me assuming it's 2008 :blush: What is it they say about assuming !

    Yeah, I mean it's the SQL Server 2008 forum, surely it must...

  • RE: script error

    GilaMonster (2/24/2014)


    michael.higgins (2/24/2014)


    Here is me assuming it's 2008 :blush: What is it they say about assuming !

    Yeah, I mean it's the SQL Server 2008 forum, surely it must be SQL...

  • RE: script error

    Here is me assuming it's 2008 :blush: What is it they say about assuming !

  • RE: script error

    Just ran that and it's good on mine. At a guess I would say there is possible some reserved word or an iffy named table?

    I will have to pass...

Viewing 15 posts - 61 through 75 (of 148 total)