Forum Replies Created

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

  • RE: Instance installation date

    My memory playing tricks on me:-P

    Thanks Sean!

    😎

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

    Thinking back, I cannot remember ever using 0 as seed value for a CHECKIDENT if the initial seed value was <> 0, regardless of which method was used of emptying...

  • RE: Instance installation date

    george sibbald (5/7/2014)


    river1 (5/7/2014)


    Hi,

    I would like to know in with date did a SQL Server 2005 instance was installed on a server.

    Can I know This using t-sql?

    from glenn Berrys diagnostic...

  • RE: Error in Loading CSV file

    Quick thought, what rights has the user (running the package) in the file system, I've seen this where users can list but not open directory content.

    😎

  • RE: Error in Loading CSV file

    Shaun2012 (5/7/2014)


    The path is correct as it goes through Foreachloop container and through sequence container, also it goes check the the audit table and delete the rows but fail...

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

    Can you run the DBCC statement from Visual Studio?

    😎

  • RE: Error in Loading CSV file

    Does the file exist and is the path correct?

    Or was the file created in Excel and still open in Excel?

    😎

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

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