Forum Replies Created

Viewing 15 posts - 1,636 through 1,650 (of 1,988 total)

  • RE: Data merge between databases from different environments?

    20000 records isn't all that much. It should be relatively straight forward to just grab the ROW_ID's of all the relavant entitities from your current production environment then find...

  • RE: Server-side vs App-side

    TheSQLGuru (7/16/2015)


    ZZartin (7/16/2015)


    Hmm... in that specific case it sounds like you want to run some kind of batch job to update a field which probably would be better done at...

  • RE: Server-side vs App-side

    Hmm... in that specific case it sounds like you want to run some kind of batch job to update a field which probably would be better done at the DB...

  • RE: incrementing the number in table and then resetting the column

    Ah yes I was looking at the number on the end of the strings 😛 This should do it.

    WITH TEMP_CTE_ONE AS(

    SELECT TEST_ONE.COL_ONE TEST_ONE_COL_ONE, TEST_ONE.COL_TWO TEST_ONE_COL_TWO, TEST_TWO.COL_ONE TEST_TWO_COL_ONE, TEST_TWO.COL_TWO TEST_TWO_COL_TWO...

  • RE: incrementing the number in table and then resetting the column

    If needed change the select to 😀

    SELECT CUR_COL_ONE, COL_VALUE, ROW_NUMBER() OVER(PARTITION BY PAR_COL_ONE ORDER BY CUR_COL_ONE) AS SEQ_NUMBER FROM TEMP_CTE_TWO

    UNION ALL

    SELECT COL_ONE, COL_TWO, 0 FROM #test WHERE COL_TWO = '@@@@@'...

  • RE: incrementing the number in table and then resetting the column

    What about something like this assuming no gaps in the identity,

    CREATE TABLE #test(COL_ONE int identity, COL_TWO varchar(30))

    INSERT INTO #test(COL_TWO)

    SELECT 'dfgdfg'

    UNION ALL

    SELECT 'dfghdgfh'

    UNION ALL

    SELECT 'dghk'

    UNION ALL

    SELECT 'rtyurtyurtyu'

    UNION ALL

    SELECT '@@@@@'

    UNION ALL

    SELECT 'dsdfgsd'

    UNION...

  • RE: Today's Random Word!

    whereisSQL? (7/15/2015)


    Ed Wagner (7/15/2015)


    djj (7/15/2015)


    Ed Wagner (7/13/2015)


    crookj (7/13/2015)


    Ed Wagner (7/10/2015)


    SQLRNNR (7/10/2015)


    Eirikur Eiriksson (7/10/2015)


    Revenant (7/10/2015)


    SQLRNNR (7/10/2015)


    DonlSimpson (7/10/2015)


    Ed Wagner (7/10/2015)


    SQLRNNR (7/10/2015)


    Ed Wagner (7/10/2015)


    Patrick Stewart

    Dempsey

    Jack

    Gene

    Hackman

    Popeye

    Williams

    Mork

    Mindy

    shazbot

    Nanoo

    Naboo

    Anikin

    Dark

    lighter

  • RE: Jump In

    David.Poole (7/15/2015)


    It's great that the SQLSERVER community is like this but also a bit sad that the collaboration and helpfulness is regarded as unusual.

    It is fairly depressing and it's probably...

  • RE: Populating SQL tables with entries from Windows folders

    That should be relatively simple in SSIS, run a query that generates all the copy/move commands and exports them to the batch file, then run the batch file 🙂

  • RE: Who can tell me what this procedure wants to do?

    It looks like it uses one optional parameter and then calls two other stored procedures for every record returned by the cursor.

    SELECT TAB_ID FROM DQ_TAB WHERE ISNULL(@tableID, TAB_ID) = TAB_ID...

  • RE: Data Loss or Downtime

    Xavon (7/10/2015)


    It depends. We effectively have two systems, one for managing the business and the other for reporting. For the management system, downtime is more important. For...

  • RE: run SQL job continuously

    Hmm... theoretically you could try making two jobs, the first step of each job does your data load, then the next step calls the other job. That way they'll...

  • RE: robocopy and named instances

    Well is there a reason you need to use robocopy instead of just the standard move command?

  • RE: robocopy and named instances

    Are your backups large enough you actually need to use a non standard windows command to move them?

  • RE: I Feel Like a Magician

    Well in all fairness any flatfile format that isn't properly generated on the source side is going to break your dataflow. As for why csv are more popular it's...

Viewing 15 posts - 1,636 through 1,650 (of 1,988 total)