Forum Replies Created

Viewing 15 posts - 8,356 through 8,370 (of 8,761 total)

  • RE: Divide column values

    vigneshkumart50 (5/7/2014)


    Hi,

    I have these two columns

    select

    '$ '+REPLACE(CONVERT(VARCHAR(32),cast(round(Total_Amount,2)as MONEY),1), '.00', '') as Total_Amount,

    '$ '+REPLACE(CONVERT(VARCHAR(32),cast(round(Monthly_Amount,2)as MONEY),1), '.00', '') as Monthly_Amount

    from Finance

    Now Monthly_Amount column should have calculated values like Total_Amount/12

    Is this...

  • RE: Investigating deletes from a table

    You can use a delete trigger, output the deleted into a table. Easy to use any of the security functions (CURRENT_USER, ORIGINAL_LOGIN(), SESSION_USER, USER, USER_NAME(), SYSTEM_USER) as a column default...

  • RE: Hanging WHILE loop

    You are missing the increment of the counter, the code never hits it, improved code below

    😎

    --Set Variables for randomizing Information, et al

    DECLARE @localChestTier int, @ItemLimit int, @counter int,@ItemCounter int

    SET @counter...

  • RE: search the content of files

    SSIS + Script Task

    or

    Load to a table (SSIS/bcp/openrowset) and. search in SQL

    or

    Powershell...

    or

    External application

    or

    batch file + sqlcmd

    or

    ....

    😎

  • RE: Is there any database setting that affects CHECKIDENT(RESEED)

    Quick question, is the recovery model the same and is there any difference in the connections, ie. isolation?

    😎

  • RE: Help Needed in Complex Logic

    KGJ-Dev (5/6/2014)


    Hi Eirik,

    Am waiting for you Gentle Man. Any hope ?

    This is a modification to Chris's code, just set the values for start id and record number and off it...

  • RE: Is there any database setting that affects CHECKIDENT(RESEED)

    Start by checking out this article Context Is Everything - Check Your Settings[/url]

    😎

  • RE: SSIS caching error

    Would it be an option to use raw files[/url] for the lookup?

    😎

  • RE: Help Needed in Complex Logic

    Sorry for that, will be back with you in a short while.

    😎

  • RE: Datatypes In Your Mind

    Jeff Moden (5/6/2014)


    rhythmk (5/6/2014)


    Jeff Moden (5/5/2014)


    Even though I strongly [font="Arial Black"]disagree [/font]that BIT is an integer datatype simply because it can't be used in certain bits of math, such as...

  • RE: Help Needed in Complex Logic

    How about select top(x) from y where z > v order by z?

    😛

  • RE: Better, Faster, and Cheaper

    bedmett 9 (5/6/2014)


    I'm sure Andy misapplied the triangle analogy.

    The triangle analogy could have been applied to how long it took to get to 2014 and the kind of computers available...

  • RE: Help Needed in Complex Logic

    Be careful here, all dynamic sql strings must be defined as N' string ', if missing the "N" in front, it will cause an implicit cast from (v)char to n(v)char,...

  • RE: How to store a central repository of data

    sbaer (5/6/2014)


    If possible, establish a single data collection point. From there it is easy to distribute the client's data to the appropriate destinations. In the central repository, maintain all the...

  • RE: How to store a central repository of data

    sbaer (5/6/2014)


    I am fairly new to database design and haven't been able to find a lot on this question.

    I work for a marketing and advertising firm. We don't have...

Viewing 15 posts - 8,356 through 8,370 (of 8,761 total)