Forum Replies Created

Viewing 15 posts - 1,726 through 1,740 (of 3,011 total)

  • RE: DEFAULT Constraint Definition

    DROP TABLE MYEXAMPLE

    go

    CREATE TABLE [dbo].[MYEXAMPLE] (

    [EXAMPLEID] INT IDENTITY(1,1) NOT NULL,

    [EXAMPLEFLAG] CHAR(1)...

  • RE: Over-Engineering

    The primary reason for over-engineering is “over-specing”, where business users demand features that are costly to deliver and provide little business benefit.

    They have little understanding of what a feature actually...

  • RE: scheduling a restore process

    Set the database that you are trying to restore over offline before doing the restore.

    alter database MyDatabase set offline with rollback immediate

  • RE: file transfer ideas...

    Use a backup compression utility that will also create encrypted backup files. I know that LiteSpeed will do this, and I believe Redgate backup will do it also.

    This will...

  • RE: Arithmetic overflow error converting varchar to data type numeric.

    Have you tried your check on the result_value column with a CASE statement?

    where

    id_type = 'MR' ...

  • RE: Converting VarChar to DateTime

    select

    a.DT_In,

    DT_Out =convert(datetime,stuff(stuff(stuff(stuff(a.DT_In,15,0,'.'),13,0,':'),11,0,':'),9,0,' '))

    from

    ( --Test Data

    ...

  • RE: The Worst Advice

    In any case, there is a lot worse advice out there than “Never use Cursors”. In the world of bad advice, it’s kind of fail-safe bad advice that probably...

  • RE: The Worst Advice

    Here is a great story about a "Spreadsheetized" design where all the companies data was stored in a single table.

    Death by Delete

    http://thedailywtf.com/Articles/Death-by-Delete.aspx

    "...

    One day, a developer was optimizing the database and...

  • RE: High memory usage in sql server 2005

    Why do you want to limit the memory? SQL Server is designed to maximize performance by having as much data as possible in memory.

  • RE: Simple meaning question on startdate

    Matt Miller (7/10/2009)


    Michael Valentine Jones (7/10/2009)


    19000107 is Sunday, Jan 7, 1900.

    The code finds the number of day since 1900-01-07, divides by 7 to get the number of weeks since than,...

  • RE: Simple meaning question on startdate

    1753-01-01 00:00:00.000 is the earliest possible SQL Server datetime value.

    I believe that the reason 1753 is used is because that was the first full year that English speaking countries used...

  • RE: Simple meaning question on startdate

    19000107 is Sunday, Jan 7, 1900.

    The code finds the number of day since 1900-01-07, divides by 7 to get the number of weeks since than, and adds that number of...

  • RE: The Worst Advice

    John Rowan (7/10/2009)


    cs_troyk (7/10/2009)


    "Denormalize for performance" and its sibling "You only need to normalize to 3NF".

    😉

    Ha! I'll have to second that one. Not just in forums, but this one...

  • RE: The Worst Advice

    The title of this thread reminds me of this book:

    Real Americans Admit: "The Worst Thing I've Ever Done"

    http://www.amazon.com/Real-Americans-Admit-Worst-Thing/dp/1561631574#

    Maybe we need a new thread: "The Worst Advice I've Ever Given"

  • RE: The Worst Advice

    Advising people to always use a NOLOCK hint to prevent blocking, with no explanation of the potential problems or even an understanding of the problems.

    It’s a real sore point with...

Viewing 15 posts - 1,726 through 1,740 (of 3,011 total)