Viewing 14 posts - 1 through 14 (of 14 total)
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
...
June 16, 2009 at 10:25 am
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
June 16, 2009 at 9:29 am
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...
October 21, 2008 at 2:57 pm
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,
...
October 21, 2008 at 2:51 pm
Something along this line :
SELECT
t.LAST_NAME,
t.ID_SET_STATUS_TYPE AS STATUS_CODE,
t.STATUS_CODE_DATE AS START_DATE,
(
...
October 21, 2008 at 2:34 pm
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...
October 21, 2008 at 9:28 am
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...
October 21, 2008 at 4:58 am
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.
October 21, 2008 at 3:10 am
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...
October 21, 2008 at 3:07 am
in window "new job schedule"
select schedule type = "start whenever the cpu becomes idle"
October 21, 2008 at 2:55 am
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...
October 21, 2008 at 2:51 am
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...
October 21, 2008 at 2:37 am
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...
October 21, 2008 at 1:53 am
Viewing 14 posts - 1 through 14 (of 14 total)