Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)

  • RE: Can you manipulate field names programmatically ?

    Unpivot doesn't work, because you have two series of columns, which should be unpivoted.

    The following isn't nice, but it should do.

    create table #tmp(

    ID int

    ...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: How to Sum up -ve and +ve

    Select

    Sum(

    case

    when col10

    then col1

    else 0

    end

    ) as [col1+ve],

    Sum(

    case

    when col20

    then col2

    else 0

    end

    ) as [col2+ve]

    from giventable

    Age2uN

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Windows – Delayed Write Failed (Plz Help)

    Are you trying to import from an Excelfile here, which you had locally on your machine ?

    If so, check the path to that filegiven on the package.

    Maybe it points to...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Row ID

    Identity columns in TempTables or MemoryTables work as expected:

    either :

    Create Table #myTempTable(

    RowID int identity(1,1),

    otherRowsFollow nvarchar(100)

    )

    or:

    Select

    Identity(int,1,1) as RowID,

    ...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Do not use IN

    AND (@ProvTaxIdNbr IS NULL

    ...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Deriving historical data from status changes

    Something along this line :

    SELECT

    t.LAST_NAME,

    t.ID_SET_STATUS_TYPE AS STATUS_CODE,

    t.STATUS_CODE_DATE AS START_DATE,

    (

    ...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Very high SQL2005 process memory usage on a Windows 2003 Server

    Limiting the Max-Memory for SQL Server to physical memory of the box minus 1.7 GB has proven

    quite a good value whenever there are other apps running on the same...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Tempdb becomes massive due to huge data moving operation

    Another best practice in doing frequent imports of that data-size is:

    First check what targetrows have to be changed or have to be inserted

    (push them into a worktable via

    select...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Extreme long UPDATE action, advice needed.

    Sounds to me as if there is a trigger on the updated table firing some other action per updated row.

    This might as well slow down everything trmendously.

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: I want to change currency from $ to AED

    Given your amount-bearing table is "position" and the column name holding the amount in $ is "salesamount",

    and given your currency table is "currency" having a column "shortcut" holding the value...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: how t orun JOB continuosly

    in window "new job schedule"

    select schedule type = "start whenever the cpu becomes idle"

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Dead Lock----Urgent

    First of all : Shorten your transactions.

    If your client opens a connection,

    reads some data ie that connection,

    waits for the user to enter changes or new records,

    writes back the data...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: how t orun JOB continuosly

    What's your JOB going to do ?

    Does it poll for something to do, and if there is, do it.

    Or

    Does it produce continuos load...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

  • RE: Trigger execution takes lot time on sql2005server instance

    This probably has to do with the boxes taking part in the transaction.

    If you start the DML via SSMS on box1, it is only the three boxes box1, box2 and...

    devloping robust and performant databaseapplications with Microsoft SQL-Server

Viewing 14 posts - 1 through 14 (of 14 total)