Forum Replies Created

Viewing 15 posts - 8,341 through 8,355 (of 8,753 total)

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

    rwitt 95744 (5/7/2014)


    Recovery model for both is "Full". Not quite sure what you mean on the other setting.

    That is the transaction isolation level, configurable ie. within the connection parameters. Simplest...

  • RE: Removing Memory-optimized tables

    Raghavendra Mudugal (5/7/2014)


    QUOTE

    Once you create a memory-optimized filegroup, you can only remove it by dropping the database. In a production environment, it is unlikely that you will need to remove...

  • RE: Divide column values

    J Livingston SQL (5/7/2014)


    vigneshkumart50 (5/7/2014)


    like this

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

    why CAST as MONEY and then REPLACE....couldn't you just cast as INT?

    That would be implicit rounding:cool:

  • RE: Divide column values

    More like this

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

    😎

  • RE: Divide column values

    Just move the division inside the round function.

    😎

  • RE: Datatypes In Your Mind

    martin.whitton (5/7/2014)


    Eirikur Eiriksson (5/6/2014)


    I think Andy has been a tiny bit naughty:-D

    Is a "tiny bit" a "bit" that will only store zeroes? 😀

    My personal feeling is that "bit" is not...

  • RE: The storage of VARCHAR(MAX) when null

    Ove.Kernell (5/7/2014)


    Hi all,

    If I have a table

    CREATE TABLE [dbo].[logg](

    [Id] [bigint] IDENTITY(1,1) NOT NULL,

    [Details] [varchar](MAX) NULL)

    insert logg (Details) values('')

    insert logg (Details) values(null)

    Will both statements above access only a single page (as...

  • 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?

    😎

Viewing 15 posts - 8,341 through 8,355 (of 8,753 total)